3DS: Rearrange heaps a bit

This commit is contained in:
Jeffrey Pfau 2015-09-02 22:39:21 -07:00
parent 8abb52f4df
commit 633b29128f
2 changed files with 4 additions and 4 deletions

View File

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

View File

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