summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2017-09-21 05:14:06 +0200
committerbunnei <bunneidev@gmail.com>2017-09-30 20:28:54 +0200
commitc5ce5c06e471d556254c1cf465b1d92d6a8f695d (patch)
treed2a08cba5800b41032ff309ce0cddef4cd6680ba /src/core/hle/kernel/thread.cpp
parentcore: Various changes to support 64-bit addressing. (diff)
downloadyuzu-c5ce5c06e471d556254c1cf465b1d92d6a8f695d.tar
yuzu-c5ce5c06e471d556254c1cf465b1d92d6a8f695d.tar.gz
yuzu-c5ce5c06e471d556254c1cf465b1d92d6a8f695d.tar.bz2
yuzu-c5ce5c06e471d556254c1cf465b1d92d6a8f695d.tar.lz
yuzu-c5ce5c06e471d556254c1cf465b1d92d6a8f695d.tar.xz
yuzu-c5ce5c06e471d556254c1cf465b1d92d6a8f695d.tar.zst
yuzu-c5ce5c06e471d556254c1cf465b1d92d6a8f695d.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/thread.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index f5f2eb2f7..736be50db 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -341,8 +341,8 @@ std::tuple<u32, u32, bool> GetFreeThreadLocalSlot(std::vector<std::bitset<8>>& t
* @param entry_point Address of entry point for execution
* @param arg User argument for thread
*/
-static void ResetThreadContext(ARM_Interface::ThreadContext& context, u32 stack_top,
- u32 entry_point, u32 arg) {
+static void ResetThreadContext(ARM_Interface::ThreadContext& context, VAddr stack_top,
+ VAddr entry_point, u64 arg) {
memset(&context, 0, sizeof(ARM_Interface::ThreadContext));
context.cpu_registers[0] = arg;
@@ -477,7 +477,7 @@ void Thread::BoostPriority(s32 priority) {
current_priority = priority;
}
-SharedPtr<Thread> SetupMainThread(u32 entry_point, s32 priority) {
+SharedPtr<Thread> SetupMainThread(VAddr entry_point, s32 priority) {
DEBUG_ASSERT(!GetCurrentThread());
// Initialize new "main" thread