Fix embarassing bug in paging impl that caused crashes..
This commit is contained in:
parent
868eed64ef
commit
c94a469baf
|
@ -239,7 +239,7 @@ void MapVirtualMemory(address_space_t* AddressSpace, void* VirtualAddress, size_
|
||||||
|
|
||||||
if(!(*Entry & PAGE_PRESENT)) {
|
if(!(*Entry & PAGE_PRESENT)) {
|
||||||
directptr_t Pointer = PhysAllocateZeroMem(PAGE_SIZE);
|
directptr_t Pointer = PhysAllocateZeroMem(PAGE_SIZE);
|
||||||
*Entry = (size_t)(((char*)Pointer) + DIRECT_REGION);
|
*Entry = (size_t)(((char*)Pointer) - DIRECT_REGION);
|
||||||
}
|
}
|
||||||
|
|
||||||
*Entry |= Flags;
|
*Entry |= Flags;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user