Count reserved bytes by the xbe image too
This commit is contained in:
parent
02fda3862b
commit
92ffe2fb39
|
@ -155,7 +155,8 @@ void VMManager::Initialize(HANDLE memory_view, HANDLE pagetables_view, int BootF
|
|||
InitializePageDirectory();
|
||||
|
||||
// Reserve the xbe image memory. Doing this now allows us to avoid calling XbAllocateVirtualMemory later
|
||||
ConstructVMA(XBE_IMAGE_BASE, ROUND_UP_4K(CxbxKrnl_Xbe->m_Header.dwSizeofImage), UserRegion, ReservedVma, false, XBOX_PAGE_READWRITE);
|
||||
ConstructVMA(XBE_IMAGE_BASE, ROUND_UP_4K(CxbxKrnl_Xbe->m_Header.dwSizeofImage), UserRegion, ReservedVma, false, XBOX_PAGE_READWRITE);
|
||||
m_VirtualMemoryBytesReserved += ROUND_UP_4K(CxbxKrnl_Xbe->m_Header.dwSizeofImage);
|
||||
|
||||
if (m_MmLayoutChihiro) {
|
||||
printf("Page table for Chihiro arcade initialized!\n");
|
||||
|
|
Loading…
Reference in New Issue