From e059ea063216e92a950bfdbf4e7101a94fcb9898 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 14:33:04 -0500 Subject: [PATCH] cleanup(puh_ker_tsk): rename entry unk_0x00/04 to thread/stack (#912) OSThread* used with OSSetThreadPriority; following buffer is task stack. --- libs/RVL_SDK/src/usbcmn/puh_ker_tsk.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/RVL_SDK/src/usbcmn/puh_ker_tsk.c b/libs/RVL_SDK/src/usbcmn/puh_ker_tsk.c index 103e450f..5cbc5933 100644 --- a/libs/RVL_SDK/src/usbcmn/puh_ker_tsk.c +++ b/libs/RVL_SDK/src/usbcmn/puh_ker_tsk.c @@ -6,8 +6,8 @@ static struct { struct { - OSThread* unk_0x00; - u8 unk_0x04[0x33C]; + OSThread* thread; // 0x00 + u8 stack[0x33C]; // 0x04 } entries[MAX_PUH_TSK]; // 0x00 u32 unk_0x680; u32 unk_0x684; @@ -24,9 +24,9 @@ s32 uhf_ker_set_priority(int tsk, int priority) { return -5; } - if (st_uhs_ker_tsk_mng.entries[tsk - 1].unk_0x00 == NULL) { + if (st_uhs_ker_tsk_mng.entries[tsk - 1].thread == NULL) { return -1; } - return OSSetThreadPriority(st_uhs_ker_tsk_mng.entries[tsk - 1].unk_0x00, priority) ? 0 : -20; + return OSSetThreadPriority(st_uhs_ker_tsk_mng.entries[tsk - 1].thread, priority) ? 0 : -20; }