mirror of
https://github.com/wiiu-env/wut.git
synced 2025-03-03 19:35:22 +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
|
static uint8_t
|
||||||
sCrashThreadStack[THREAD_STACK_SIZE];
|
sCrashThreadStack[THREAD_STACK_SIZE];
|
||||||
|
|
||||||
static OSThread
|
static OSThread __attribute__((aligned(8)))
|
||||||
sCrashThread;
|
sCrashThread;
|
||||||
|
|
||||||
static int
|
static int
|
||||||
@ -96,7 +96,7 @@ getStackTrace(OSContext *context)
|
|||||||
for (i = 0; i < 16; ++i) {
|
for (i = 0; i < 16; ++i) {
|
||||||
uint32_t addr;
|
uint32_t addr;
|
||||||
|
|
||||||
if (!stackPtr || (uintptr_t)stackPtr == 0xFFFFFFFF) {
|
if (!stackPtr || (uintptr_t)stackPtr == 0x1 || (uintptr_t)stackPtr == 0xFFFFFFFF) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user