Add note about default processor ID
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user