mirror of
https://github.com/reactos/reactos.git
synced 2026-07-07 11:50:19 +08:00
[freeldr] Never unmap hyperspace or HAL entries. Fixes boot problems with more than 1GB of RAM
svn path=/trunk/; revision=44805
This commit is contained in:
@@ -208,6 +208,10 @@ MempUnmapPage(ULONG Page)
|
||||
PHARDWARE_PTE KernelPT;
|
||||
ULONG Entry = (Page >> 10) + (KSEG0_BASE >> 22);
|
||||
|
||||
/* Don't unmap hyperspace or HAL entries */
|
||||
if (Entry == HYPER_SPACE_ENTRY || Entry == 1023)
|
||||
return;
|
||||
|
||||
if (PDE[Entry].Valid)
|
||||
{
|
||||
KernelPT = (PHARDWARE_PTE)(PDE[Entry].PageFrameNumber << MM_PAGE_SHIFT);
|
||||
|
||||
Reference in New Issue
Block a user