mirror of https://github.com/mgba-emu/mgba.git
3DS: Rearrange heaps a bit
This commit is contained in:
parent
8abb52f4df
commit
633b29128f
|
@ -10,10 +10,10 @@
|
|||
#include <3ds.h>
|
||||
|
||||
void* anonymousMemoryMap(size_t size) {
|
||||
return malloc(size);
|
||||
return linearAlloc(size);
|
||||
}
|
||||
|
||||
void mappedMemoryFree(void* memory, size_t size) {
|
||||
UNUSED(size);
|
||||
free(memory);
|
||||
linearFree(memory);
|
||||
}
|
||||
|
|
|
@ -26,8 +26,8 @@ extern char* fake_heap_start;
|
|||
extern char* fake_heap_end;
|
||||
u32 __linear_heap;
|
||||
u32 __heapBase;
|
||||
static u32 __heap_size = 0x02800000;
|
||||
static u32 __linear_heap_size = 0x01000000;
|
||||
static u32 __heap_size = 0x02400000;
|
||||
static u32 __linear_heap_size = 0x01400000;
|
||||
|
||||
extern void (*__system_retAddr)(void);
|
||||
|
||||
|
|
Loading…
Reference in New Issue