Fix embarassing bug in paging impl that caused crashes..

This commit is contained in:
Curle 2020-11-26 04:01:22 +00:00
parent 4e7f8d47a5
commit 4468cee2e7
Signed by: TheCurle
GPG Key ID: 5942F13718443F79

View File

@ -239,7 +239,7 @@ void MapVirtualMemory(address_space_t* AddressSpace, void* VirtualAddress, size_
if(!(*Entry & PAGE_PRESENT)) {
directptr_t Pointer = PhysAllocateZeroMem(PAGE_SIZE);
*Entry = (size_t)(((char*)Pointer) + DIRECT_REGION);
*Entry = (size_t)(((char*)Pointer) - DIRECT_REGION);
}
*Entry |= Flags;