diff --git a/pthread/sys/switch/phal.c b/pthread/sys/switch/phal.c index bc861dfe..84496740 100644 --- a/pthread/sys/switch/phal.c +++ b/pthread/sys/switch/phal.c @@ -16,7 +16,7 @@ int phal_thread_create(phal_tid *tid, void (*start_routine)(void*), void *arg) { if (stack == NULL) return ENOMEM; stack += 0x2000; - ret = svcCreateThread(tid, start_routine, (u64)arg, stack, 0, -2); + ret = svcCreateThread(tid, start_routine, (u64)arg, stack, 0x1F, -2); if (ret) return ret; return svcStartThread(*tid);