mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-27 12:04:16 +01:00
Refined thread launch on syscore error messages
This commit is contained in:
parent
eb435816e3
commit
b5dbc6cb98
@ -556,11 +556,21 @@ static ResultCode CreateThread(Kernel::Handle* out_handle, s32 priority, u32 ent
|
||||
break;
|
||||
}
|
||||
|
||||
if (processor_id == THREADPROCESSORID_1 || processor_id == THREADPROCESSORID_ALL ||
|
||||
(processor_id == THREADPROCESSORID_DEFAULT &&
|
||||
Kernel::g_current_process->ideal_processor == THREADPROCESSORID_1)) {
|
||||
LOG_WARNING(Kernel_SVC,
|
||||
"Newly created thread is allowed to be run in the SysCore, unimplemented.");
|
||||
if (processor_id == THREADPROCESSORID_ALL) {
|
||||
LOG_INFO(Kernel_SVC,
|
||||
"Newly created thread is allowed to be run in any Core, unimplemented.");
|
||||
}
|
||||
|
||||
if (processor_id == THREADPROCESSORID_DEFAULT &&
|
||||
Kernel::g_current_process->ideal_processor == THREADPROCESSORID_1) {
|
||||
LOG_WARNING(
|
||||
Kernel_SVC,
|
||||
"Newly created thread is allowed to be run in the SysCore (Core1), unimplemented.");
|
||||
}
|
||||
|
||||
if (processor_id == THREADPROCESSORID_1) {
|
||||
LOG_ERROR(Kernel_SVC,
|
||||
"Newly created thread must run in the SysCore (Core1), unimplemented.");
|
||||
}
|
||||
|
||||
CASCADE_RESULT(SharedPtr<Thread> thread, Kernel::Thread::Create(name, entry_point, priority,
|
||||
|
Loading…
Reference in New Issue
Block a user