Merge pull request #61 from CreeperMario/crash-fix

libWHB exception handler now works
This commit is contained in:
James
2018-01-11 02:37:03 -08:00
committed by GitHub

View File

@@ -40,7 +40,7 @@ sRegistersLength = 0;
static uint8_t
sCrashThreadStack[THREAD_STACK_SIZE];
static OSThread
static OSThread __attribute__((aligned(8)))
sCrashThread;
static int
@@ -96,7 +96,7 @@ getStackTrace(OSContext *context)
for (i = 0; i < 16; ++i) {
uint32_t addr;
if (!stackPtr || (uintptr_t)stackPtr == 0xFFFFFFFF) {
if (!stackPtr || (uintptr_t)stackPtr == 0x1 || (uintptr_t)stackPtr == 0xFFFFFFFF) {
break;
}