Add svcGetThreadIdealProcessor

This commit is contained in:
wheremyfoodat 2023-08-20 03:43:26 +03:00
parent 415a5bb8de
commit 434827e11e
3 changed files with 11 additions and 0 deletions

View file

@ -445,6 +445,15 @@ void Kernel::getThreadPriority() {
}
}
void Kernel::getThreadIdealProcessor() {
const Handle handle = regs[1]; // Thread handle
logSVC("GetThreadIdealProcessor (handle = %X)\n", handle);
// TODO: Not documented what this is or what it does. Citra doesn't implement it at all. Return AppCore as the ideal processor for now
regs[0] = Result::Success;
regs[1] = static_cast<u32>(ProcessorID::AppCore);
}
void Kernel::setThreadPriority() {
const Handle handle = regs[0];
const u32 priority = regs[1];