From df021c1ee15a2ff5ea86adbfd626ad3213084191 Mon Sep 17 00:00:00 2001 From: roblabla Date: Mon, 11 Dec 2017 23:26:30 +0100 Subject: [PATCH] Set the default priority to 0x1F for new threads --- pthread/sys/switch/phal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);