Count reserved bytes by the xbe image too

This commit is contained in:
ergo720 2018-08-26 19:47:48 +02:00
parent 02fda3862b
commit 92ffe2fb39
1 changed files with 2 additions and 1 deletions

View File

@ -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");