summaryrefslogtreecommitdiff
path: root/src/JSystem/JKernel/JKRThread.cpp
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2025-02-10 11:20:42 -0800
committerGitHub <noreply@github.com>2025-02-10 21:20:42 +0200
commit2453c0e3333157090e839eeab768d19b6a2b0ba1 (patch)
treef51d7bcca7a8227966fc05ee7ef25cd508075a4c /src/JSystem/JKernel/JKRThread.cpp
parent6c24ff192933300faf555f1411e03432c751afe5 (diff)
copy dolsdk2004 to tp / b_bh + e_mb done (#2299)
* move dolsdk2004 over * cleanup some temp work * finish and cleanup gf * b_bh done * d_a_e_mb done
Diffstat (limited to 'src/JSystem/JKernel/JKRThread.cpp')
-rw-r--r--src/JSystem/JKernel/JKRThread.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/JSystem/JKernel/JKRThread.cpp b/src/JSystem/JKernel/JKRThread.cpp
index 950c7043a3..03fc20b1da 100644
--- a/src/JSystem/JKernel/JKRThread.cpp
+++ b/src/JSystem/JKernel/JKRThread.cpp
@@ -3,6 +3,7 @@
#include "JSystem/JUtility/JUTConsole.h"
#include "stdio.h"
#include "dol2asm.h"
+#include "global.h"
/* 8043428C-80434298 060FAC 000C+00 5/6 0/0 0/0 .bss sThreadList__9JKRThread */
JSUList<JKRThread> JKRThread::sThreadList(0);
@@ -52,8 +53,8 @@ JKRThread::JKRThread(JKRHeap* heap, u32 stack_size, int message_count, int param
JKRThread::JKRThread(OSThread* thread, int message_count) : mThreadListLink(this) {
mHeap = NULL;
mThreadRecord = thread;
- mStackSize = (u32)thread->stack_end - (u32)thread->stack_base;
- mStackMemory = thread->stack_base;
+ mStackSize = (u32)thread->stackEnd - (u32)thread->stackBase;
+ mStackMemory = thread->stackBase;
setCommon_mesgQueue(JKRHeap::getSystemHeap(), message_count);
}
@@ -325,4 +326,4 @@ JSUList<JKRTask> JKRTask::sTaskList;
#pragma push
#pragma force_active on
u8 JKRTask::sEndMesgQueue[32];
-#pragma pop \ No newline at end of file
+#pragma pop