- Fix boot (thx hpoussin for hint).

svn path=/trunk/; revision=28575
This commit is contained in:
Aleksey Bragin 2007-08-26 18:18:48 +00:00
parent 149ea4f5f4
commit aad59dfc19

View file

@ -142,7 +142,7 @@ CmpRosGetHardwareHive(OUT PULONG Length)
{ {
/* Check if it's not the SYSTEM hive that we already initialized */ /* Check if it's not the SYSTEM hive that we already initialized */
if ((MdBlock->BasePage) != if ((MdBlock->BasePage) !=
((ULONG_PTR)KeLoaderBlock->RegistryBase >> PAGE_SHIFT)) (((ULONG_PTR)KeLoaderBlock->RegistryBase &~ KSEG0_BASE) >> PAGE_SHIFT))
{ {
/* Hardware hive break out */ /* Hardware hive break out */
break; break;
@ -156,7 +156,7 @@ CmpRosGetHardwareHive(OUT PULONG Length)
/* We need a hardware hive */ /* We need a hardware hive */
ASSERT(MdBlock); ASSERT(MdBlock);
*Length = MdBlock->PageCount << PAGE_SHIFT; *Length = MdBlock->PageCount << PAGE_SHIFT;
return (PVOID)(MdBlock->BasePage << PAGE_SHIFT); return (PVOID)((MdBlock->BasePage << PAGE_SHIFT) | KSEG0_BASE);
} }
VOID VOID