From 61e5a4444f7306602bf640f92ba49532385e0b29 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Wed, 17 Aug 2016 16:03:49 +0200 Subject: [PATCH] Fix derp. --- exceptions/arm11/source/mainHandler.c | 1 + 1 file changed, 1 insertion(+) diff --git a/exceptions/arm11/source/mainHandler.c b/exceptions/arm11/source/mainHandler.c index bbeb8eb..734728c 100644 --- a/exceptions/arm11/source/mainHandler.c +++ b/exceptions/arm11/source/mainHandler.c @@ -90,6 +90,7 @@ void __attribute__((noreturn)) mainHandler(u32 regs[REG_DUMP_SIZE / 4], u32 type //Dump stack in place dumpHeader.stackDumpSize = copyMemory(final, (const void *)registerDump[13], 0x1000 - (registerDump[13] & 0xFFF), 1); + final += dumpHeader.stackDumpSize; vu8 *currentKProcess = (cannotAccessVA((u8 *)0xFFFF9004)) ? NULL : *(vu8 **)0xFFFF9004; vu8 *currentKCodeSet = (currentKProcess != NULL) ? *(vu8 **)(currentKProcess + CODESET_OFFSET) : NULL;