mirror of
https://github.com/reactos/reactos.git
synced 2025-01-11 16:51:06 +00:00
- Fix boot (thx hpoussin for hint).
svn path=/trunk/; revision=28575
This commit is contained in:
parent
149ea4f5f4
commit
aad59dfc19
1 changed files with 2 additions and 2 deletions
|
@ -142,7 +142,7 @@ CmpRosGetHardwareHive(OUT PULONG Length)
|
|||
{
|
||||
/* 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 @@ CmpRosGetHardwareHive(OUT PULONG Length)
|
|||
/* 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
|
||||
|
|
Loading…
Reference in a new issue