mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-22 20:39:20 +01:00
Correct the handle argument in svcGetThreadPriority
The thread handle is sent in w1 rather than w0.
This commit is contained in:
parent
138e219e0c
commit
b823f1cd0d
@ -274,7 +274,7 @@ namespace skyline::kernel::svc {
|
||||
}
|
||||
|
||||
void GetThreadPriority(DeviceState &state) {
|
||||
auto handle = state.ctx->registers.w0;
|
||||
auto handle = state.ctx->registers.w1;
|
||||
try {
|
||||
auto priority = state.process->GetHandle<type::KThread>(handle)->priority;
|
||||
state.logger->Debug("svcGetThreadPriority: Writing thread priority {}", priority);
|
||||
|
Loading…
Reference in New Issue
Block a user