Proper stack management

This commit is contained in:
wheremyfoodat 2023-07-07 15:00:18 +03:00
parent 4a12e59c2f
commit 2ec3884189
4 changed files with 48 additions and 8 deletions

View file

@ -29,7 +29,6 @@ namespace VirtualAddrs {
// Stack for main ARM11 thread.
// Typically 0x4000 bytes, determined by exheader
StackTop = 0x10000000,
StackBottom = 0x0FFFC000,
DefaultStackSize = 0x4000,
NormalHeapStart = 0x08000000,
@ -248,4 +247,5 @@ public:
u32 getUsedUserMem() { return usedUserMemory; }
void setVRAM(u8* pointer) { vram = pointer; }
bool allocateMainThreadStack(u32 size);
};