- Initialize the ACPI table (the exact same we do it in KiRosFrldrLpbToNtLpb)
authorCameron Gutman <aicommander@gmail.com>
Wed, 3 Mar 2010 02:38:56 +0000 (02:38 +0000)
committerCameron Gutman <aicommander@gmail.com>
Wed, 3 Mar 2010 02:38:56 +0000 (02:38 +0000)
 - Fixes ACPI detection when booted in Windows-compatible mode

svn path=/trunk/; revision=45775

reactos/boot/freeldr/freeldr/windows/winldr.c

index 0121773..4ba7b1b 100644 (file)
@@ -37,6 +37,7 @@ extern char reactos_arc_strings[32][256];
 
 extern BOOLEAN UseRealHeap;
 extern ULONG LoaderPagesSpanned;
+extern BOOLEAN AcpiPresent;
 
 BOOLEAN
 WinLdrCheckForLoadedDll(IN OUT PLOADER_PARAMETER_BLOCK WinLdrBlock,
@@ -196,6 +197,13 @@ WinLdrInitializePhase1(PLOADER_PARAMETER_BLOCK LoaderBlock,
        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);
        strcat(MiscFiles, "AppPatch\\drvmain.sdb");