Correct the handle argument in svcGetThreadPriority

The thread handle is sent in w1 rather than w0.
This commit is contained in:
Billy Laws 2020-06-27 16:57:11 +01:00 committed by ◱ PixelyIon
parent 138e219e0c
commit b823f1cd0d

View File

@ -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);