I think this breaks real Windows bootloading support.
WBR,
Aleksey Bragin.
On Mar 3, 2010, at 5:38 AM, cgutman(a)svn.reactos.org wrote:
Author: cgutman
Date: Wed Mar 3 03:38:56 2010
New Revision: 45775
URL:
http://svn.reactos.org/svn/reactos?rev=45775&view=rev
Log:
- Initialize the ACPI table (the exact same we do it in
KiRosFrldrLpbToNtLpb)
- Fixes ACPI detection when booted in Windows-compatible mode
Modified:
trunk/reactos/boot/freeldr/freeldr/windows/winldr.c
Modified: trunk/reactos/boot/freeldr/freeldr/windows/winldr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/
freeldr/windows/winldr.c?rev=45775&r1=45774&r2=45775&view=diff
======================================================================
========
--- trunk/reactos/boot/freeldr/freeldr/windows/winldr.c
[iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/windows/winldr.c
[iso-8859-1] Wed Mar 3 03:38:56 2010
@@ -37,6 +37,7 @@
extern BOOLEAN UseRealHeap;
extern ULONG LoaderPagesSpanned;
+extern BOOLEAN AcpiPresent;
BOOLEAN
WinLdrCheckForLoadedDll(IN OUT PLOADER_PARAMETER_BLOCK WinLdrBlock,
@@ -195,6 +196,13 @@
Extension->MajorVersion = (VersionToBoot & 0xFF00) >> 8;
Extension->MinorVersion = VersionToBoot & 0xFF;
Extension->Profile.Status = 2;
+
+ /* Check if ACPI is present */
+ if (AcpiPresent)
+ {
+ /* See KiRosFrldrLpbToNtLpb for details */
+ Extension->AcpiTable = (PVOID)1;
+ }
/* Load drivers database */
strcpy(MiscFiles, BootPath);