mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-27 15:25:38 +03: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