Add note about default processor ID

This commit is contained in:
wheremyfoodat 2023-08-20 01:54:45 +03:00
parent 5b8bb12860
commit 8a435cc36b

View file

@ -478,6 +478,7 @@ void Kernel::getCurrentProcessorNumber() {
// Until we properly implement per-core schedulers, return whatever processor ID passed to svcCreateThread // Until we properly implement per-core schedulers, return whatever processor ID passed to svcCreateThread
switch (id) { switch (id) {
// TODO: This is picked from exheader
case ProcessorID::Default: case ProcessorID::Default:
ret = static_cast<s32>(ProcessorID::AppCore); ret = static_cast<s32>(ProcessorID::AppCore);
break; break;
@ -494,7 +495,7 @@ void Kernel::getCurrentProcessorNumber() {
Helpers::warn("GetCurrentProcessorNumber: Thread not running on appcore\n"); Helpers::warn("GetCurrentProcessorNumber: Thread not running on appcore\n");
} }
regs[0] = ret; regs[0] = static_cast<u32>(ret);
} }
void Kernel::exitThread() { void Kernel::exitThread() {