Implement SVC 0x3B (GetThreadContext)

This commit is contained in:
wheremyfoodat 2024-01-02 17:18:47 +02:00
parent 46f92f145f
commit 1430f1c4c2
3 changed files with 9 additions and 0 deletions

View file

@ -462,6 +462,13 @@ void Kernel::getThreadIdealProcessor() {
regs[1] = static_cast<u32>(ProcessorID::AppCore);
}
void Kernel::getThreadContext() {
Helpers::warn("Stubbed Kernel::GetThreadContext");
// TODO: Decompile this from Kernel11. 3DBrew says function is stubbed.
regs[0] = Result::Success;
}
void Kernel::setThreadPriority() {
const Handle handle = regs[0];
const u32 priority = regs[1];