summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/svc.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2018-10-26 00:37:14 -0400
committerGravatar Lioncash2018-10-26 12:49:14 -0400
commit7de8e3634323bbfcd4242581b2e45493a126710a (patch)
tree387a3d465c90bfaba1953a6748d75cd92f176592 /src/core/hle/kernel/svc.cpp
parentsvc: Implement svcGetInfo command 0xF0000002 (diff)
downloadyuzu-7de8e3634323bbfcd4242581b2e45493a126710a.tar.gz
yuzu-7de8e3634323bbfcd4242581b2e45493a126710a.tar.xz
yuzu-7de8e3634323bbfcd4242581b2e45493a126710a.zip
svc: Localize the GetInfo enum class to the function itself
Nothing from this enum is intended to be used outside of this function.
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r--src/core/hle/kernel/svc.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index 110f042d7..4e490e2b5 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -467,6 +467,37 @@ static ResultCode GetInfo(u64* result, u64 info_id, u64 handle, u64 info_sub_id)
467 LOG_TRACE(Kernel_SVC, "called info_id=0x{:X}, info_sub_id=0x{:X}, handle=0x{:08X}", info_id, 467 LOG_TRACE(Kernel_SVC, "called info_id=0x{:X}, info_sub_id=0x{:X}, handle=0x{:08X}", info_id,
468 info_sub_id, handle); 468 info_sub_id, handle);
469 469
470 enum class GetInfoType : u64 {
471 // 1.0.0+
472 AllowedCpuIdBitmask = 0,
473 AllowedThreadPrioBitmask = 1,
474 MapRegionBaseAddr = 2,
475 MapRegionSize = 3,
476 HeapRegionBaseAddr = 4,
477 HeapRegionSize = 5,
478 TotalMemoryUsage = 6,
479 TotalHeapUsage = 7,
480 IsCurrentProcessBeingDebugged = 8,
481 ResourceHandleLimit = 9,
482 IdleTickCount = 10,
483 RandomEntropy = 11,
484 PerformanceCounter = 0xF0000002,
485 // 2.0.0+
486 ASLRRegionBaseAddr = 12,
487 ASLRRegionSize = 13,
488 NewMapRegionBaseAddr = 14,
489 NewMapRegionSize = 15,
490 // 3.0.0+
491 IsVirtualAddressMemoryEnabled = 16,
492 PersonalMmHeapUsage = 17,
493 TitleId = 18,
494 // 4.0.0+
495 PrivilegedProcessId = 19,
496 // 5.0.0+
497 UserExceptionContextAddr = 20,
498 ThreadTickCount = 0xF0000002,
499 };
500
470 const auto* current_process = Core::CurrentProcess(); 501 const auto* current_process = Core::CurrentProcess();
471 const auto& vm_manager = current_process->VMManager(); 502 const auto& vm_manager = current_process->VMManager();
472 503