Author: fireball
Date: Sun Aug 26 22:18:48 2007
New Revision: 28575
URL:
http://svn.reactos.org/svn/reactos?rev=28575&view=rev
Log:
- Fix boot (thx hpoussin for hint).
Modified:
trunk/reactos/ntoskrnl/cm/registry.c
Modified: trunk/reactos/ntoskrnl/cm/registry.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cm/registry.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/cm/registry.c (original)
+++ trunk/reactos/ntoskrnl/cm/registry.c Sun Aug 26 22:18:48 2007
@@ -142,7 +142,7 @@
{
/* Check if it's not the SYSTEM hive that we already initialized */
if ((MdBlock->BasePage) !=
- ((ULONG_PTR)KeLoaderBlock->RegistryBase >> PAGE_SHIFT))
+ (((ULONG_PTR)KeLoaderBlock->RegistryBase &~ KSEG0_BASE) >>
PAGE_SHIFT))
{
/* Hardware hive break out */
break;
@@ -156,7 +156,7 @@
/* We need a hardware hive */
ASSERT(MdBlock);
*Length = MdBlock->PageCount << PAGE_SHIFT;
- return (PVOID)(MdBlock->BasePage << PAGE_SHIFT);
+ return (PVOID)((MdBlock->BasePage << PAGE_SHIFT) | KSEG0_BASE);
}
VOID