[ros-diffs] [cgutman] 45775: - Initialize the ACPI table (the exact same we do it in KiRosFrldrLpbToNtLpb) - Fixes ACPI detection when booted in Windows-compatible mode

cgutman at svn.reactos.org cgutman at svn.reactos.org
Wed Mar 3 03:38:57 CET 2010


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);




More information about the Ros-diffs mailing list