diff --git a/include/mem_map.h b/include/mem_map.h index 2885dc1..50439cf 100644 --- a/include/mem_map.h +++ b/include/mem_map.h @@ -107,8 +107,8 @@ #define A9_STUB_SIZE (0x200) #define A9_HEAP_END (A9_RAM_BASE + A9_RAM_SIZE) #define A9_STACK_START (DTCM_BASE) -#define A9_STACK_END (DTCM_BASE + DTCM_SIZE - 0x800) -#define A9_IRQ_STACK_START (DTCM_BASE + DTCM_SIZE - 0x800) +#define A9_STACK_END (DTCM_BASE + DTCM_SIZE - 0x400) +#define A9_IRQ_STACK_START (DTCM_BASE + DTCM_SIZE - 0x400) #define A9_IRQ_STACK_END (DTCM_BASE + DTCM_SIZE) #define A9_EXC_STACK_START (ITCM_KERNEL_MIRROR + (ITCM_SIZE / 2)) #define A9_EXC_STACK_END (ITCM_KERNEL_MIRROR + ITCM_SIZE) diff --git a/source/arm9/start.s b/source/arm9/start.s index b869f25..15c50a1 100644 --- a/source/arm9/start.s +++ b/source/arm9/start.s @@ -82,10 +82,6 @@ bl setupMpu @ Setup newlib heap - ldr r0, =(__end__ + 12) @ Do not overwrite the value at symbol __end__ - bic r0, r0, #7 @ Align to 8 bytes - ldr r1, =fake_heap_start - str r0, [r1] mov r0, #A9_HEAP_END ldr r1, =fake_heap_end str r0, [r1]