mirror of
https://github.com/wiiu-env/wut.git
synced 2025-03-01 21:35:25 +01:00
Merge pull request #61 from CreeperMario/crash-fix
libWHB exception handler now works
This commit is contained in:
commit
5ae8226d68
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user