forceAlloc impl

This commit is contained in:
minjaesong
2025-04-07 21:10:19 +09:00
parent f30022bf66
commit 9ce7e3dfd2
3 changed files with 17 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ sys.free(metaArea)
if (addrToLoad == 0)
addrToLoad = sys.malloc(imageSize + 4)
else
forceAlloc(addrToLoad, imageSize + 4)
sys.forceAlloc(addrToLoad, imageSize + 4)
// writes IMAGE_SIZE and the BINARY_IMAGE directly to the memory
infile.pread(addrToLoad, imageSize + 4, 8)