diff options
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index bfe1907e3..a1eaab649 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp | |||
| @@ -296,8 +296,14 @@ static ResultCode GetInfo(u64* result, u64 info_id, u64 handle, u64 info_sub_id) | |||
| 296 | LOG_TRACE(Kernel_SVC, "called info_id=0x%X, info_sub_id=0x%X, handle=0x%08X", info_id, | 296 | LOG_TRACE(Kernel_SVC, "called info_id=0x%X, info_sub_id=0x%X, handle=0x%08X", info_id, |
| 297 | info_sub_id, handle); | 297 | info_sub_id, handle); |
| 298 | 298 | ||
| 299 | ASSERT(handle == 0 || handle == CurrentProcess); | ||
| 300 | |||
| 299 | auto& vm_manager = g_current_process->vm_manager; | 301 | auto& vm_manager = g_current_process->vm_manager; |
| 302 | |||
| 300 | switch (static_cast<GetInfoType>(info_id)) { | 303 | switch (static_cast<GetInfoType>(info_id)) { |
| 304 | case GetInfoType::AllowedCpuIdBitmask: | ||
| 305 | *result = g_current_process->allowed_processor_mask; | ||
| 306 | break; | ||
| 301 | case GetInfoType::TotalMemoryUsage: | 307 | case GetInfoType::TotalMemoryUsage: |
| 302 | *result = vm_manager.GetTotalMemoryUsage(); | 308 | *result = vm_manager.GetTotalMemoryUsage(); |
| 303 | break; | 309 | break; |
| @@ -455,16 +461,15 @@ static ResultCode CreateThread(Handle* out_handle, VAddr entry_point, u64 arg, V | |||
| 455 | switch (processor_id) { | 461 | switch (processor_id) { |
| 456 | case THREADPROCESSORID_0: | 462 | case THREADPROCESSORID_0: |
| 457 | break; | 463 | break; |
| 458 | case THREADPROCESSORID_ALL: | ||
| 459 | LOG_INFO(Kernel_SVC, | ||
| 460 | "Newly created thread is allowed to be run in any Core, unimplemented."); | ||
| 461 | break; | ||
| 462 | case THREADPROCESSORID_1: | 464 | case THREADPROCESSORID_1: |
| 465 | case THREADPROCESSORID_2: | ||
| 466 | case THREADPROCESSORID_3: | ||
| 467 | // TODO(bunnei): Implement support for other processor IDs | ||
| 463 | LOG_ERROR(Kernel_SVC, | 468 | LOG_ERROR(Kernel_SVC, |
| 464 | "Newly created thread must run in the SysCore (Core1), unimplemented."); | 469 | "Newly created thread must run in another thread (%u), unimplemented.", |
| 470 | processor_id); | ||
| 465 | break; | 471 | break; |
| 466 | default: | 472 | default: |
| 467 | // TODO(bunnei): Implement support for other processor IDs | ||
| 468 | ASSERT_MSG(false, "Unsupported thread processor ID: %d", processor_id); | 473 | ASSERT_MSG(false, "Unsupported thread processor ID: %d", processor_id); |
| 469 | break; | 474 | break; |
| 470 | } | 475 | } |