summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/hle/kernel/svc.cpp154
1 files changed, 77 insertions, 77 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index 9387373c1..3a2c9d18d 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -2559,9 +2559,9 @@ struct FunctionDef {
2559} // namespace 2559} // namespace
2560 2560
2561static const FunctionDef SVC_Table_32[] = { 2561static const FunctionDef SVC_Table_32[] = {
2562 {0x00, nullptr, "Unknown"}, 2562 {0x00, nullptr, "Unknown0"},
2563 {0x01, SvcWrap32<SetHeapSize32>, "SetHeapSize32"}, 2563 {0x01, SvcWrap32<SetHeapSize32>, "SetHeapSize32"},
2564 {0x02, nullptr, "Unknown"}, 2564 {0x02, nullptr, "SetMemoryPermission32"},
2565 {0x03, SvcWrap32<SetMemoryAttribute32>, "SetMemoryAttribute32"}, 2565 {0x03, SvcWrap32<SetMemoryAttribute32>, "SetMemoryAttribute32"},
2566 {0x04, SvcWrap32<MapMemory32>, "MapMemory32"}, 2566 {0x04, SvcWrap32<MapMemory32>, "MapMemory32"},
2567 {0x05, SvcWrap32<UnmapMemory32>, "UnmapMemory32"}, 2567 {0x05, SvcWrap32<UnmapMemory32>, "UnmapMemory32"},
@@ -2591,97 +2591,97 @@ static const FunctionDef SVC_Table_32[] = {
2591 {0x1d, SvcWrap32<SignalProcessWideKey32>, "SignalProcessWideKey32"}, 2591 {0x1d, SvcWrap32<SignalProcessWideKey32>, "SignalProcessWideKey32"},
2592 {0x1e, SvcWrap32<GetSystemTick32>, "GetSystemTick32"}, 2592 {0x1e, SvcWrap32<GetSystemTick32>, "GetSystemTick32"},
2593 {0x1f, SvcWrap32<ConnectToNamedPort32>, "ConnectToNamedPort32"}, 2593 {0x1f, SvcWrap32<ConnectToNamedPort32>, "ConnectToNamedPort32"},
2594 {0x20, nullptr, "Unknown"}, 2594 {0x20, nullptr, "SendSyncRequestLight32"},
2595 {0x21, SvcWrap32<SendSyncRequest32>, "SendSyncRequest32"}, 2595 {0x21, SvcWrap32<SendSyncRequest32>, "SendSyncRequest32"},
2596 {0x22, nullptr, "SendSyncRequestWithUserBuffer32"}, 2596 {0x22, nullptr, "SendSyncRequestWithUserBuffer32"},
2597 {0x23, nullptr, "Unknown"}, 2597 {0x23, nullptr, "SendAsyncRequestWithUserBuffer32"},
2598 {0x24, SvcWrap32<GetProcessId32>, "GetProcessId32"}, 2598 {0x24, SvcWrap32<GetProcessId32>, "GetProcessId32"},
2599 {0x25, SvcWrap32<GetThreadId32>, "GetThreadId32"}, 2599 {0x25, SvcWrap32<GetThreadId32>, "GetThreadId32"},
2600 {0x26, SvcWrap32<Break32>, "Break32"}, 2600 {0x26, SvcWrap32<Break32>, "Break32"},
2601 {0x27, nullptr, "OutputDebugString32"}, 2601 {0x27, nullptr, "OutputDebugString32"},
2602 {0x28, nullptr, "Unknown"}, 2602 {0x28, nullptr, "ReturnFromException32"},
2603 {0x29, SvcWrap32<GetInfo32>, "GetInfo32"}, 2603 {0x29, SvcWrap32<GetInfo32>, "GetInfo32"},
2604 {0x2a, nullptr, "Unknown"}, 2604 {0x2a, nullptr, "FlushEntireDataCache32"},
2605 {0x2b, nullptr, "Unknown"}, 2605 {0x2b, nullptr, "FlushDataCache32"},
2606 {0x2c, SvcWrap32<MapPhysicalMemory32>, "MapPhysicalMemory32"}, 2606 {0x2c, SvcWrap32<MapPhysicalMemory32>, "MapPhysicalMemory32"},
2607 {0x2d, SvcWrap32<UnmapPhysicalMemory32>, "UnmapPhysicalMemory32"}, 2607 {0x2d, SvcWrap32<UnmapPhysicalMemory32>, "UnmapPhysicalMemory32"},
2608 {0x2e, nullptr, "Unknown"}, 2608 {0x2e, nullptr, "GetDebugFutureThreadInfo32"},
2609 {0x2f, nullptr, "Unknown"}, 2609 {0x2f, nullptr, "GetLastThreadInfo32"},
2610 {0x30, nullptr, "Unknown"}, 2610 {0x30, nullptr, "GetResourceLimitLimitValue32"},
2611 {0x31, nullptr, "Unknown"}, 2611 {0x31, nullptr, "GetResourceLimitCurrentValue32"},
2612 {0x32, SvcWrap32<SetThreadActivity32>, "SetThreadActivity32"}, 2612 {0x32, SvcWrap32<SetThreadActivity32>, "SetThreadActivity32"},
2613 {0x33, SvcWrap32<GetThreadContext32>, "GetThreadContext32"}, 2613 {0x33, SvcWrap32<GetThreadContext32>, "GetThreadContext32"},
2614 {0x34, SvcWrap32<WaitForAddress32>, "WaitForAddress32"}, 2614 {0x34, SvcWrap32<WaitForAddress32>, "WaitForAddress32"},
2615 {0x35, SvcWrap32<SignalToAddress32>, "SignalToAddress32"}, 2615 {0x35, SvcWrap32<SignalToAddress32>, "SignalToAddress32"},
2616 {0x36, SvcWrap32<SynchronizePreemptionState>, "SynchronizePreemptionState32"}, 2616 {0x36, SvcWrap32<SynchronizePreemptionState>, "SynchronizePreemptionState32"},
2617 {0x37, nullptr, "Unknown"}, 2617 {0x37, nullptr, "GetResourceLimitPeakValue32"},
2618 {0x38, nullptr, "Unknown"}, 2618 {0x38, nullptr, "Unknown38"},
2619 {0x39, nullptr, "Unknown"}, 2619 {0x39, nullptr, "CreateIoPool32"},
2620 {0x3a, nullptr, "Unknown"}, 2620 {0x3a, nullptr, "CreateIoRegion32"},
2621 {0x3b, nullptr, "Unknown"}, 2621 {0x3b, nullptr, "Unknown3b"},
2622 {0x3c, nullptr, "Unknown"}, 2622 {0x3c, nullptr, "KernelDebug32"},
2623 {0x3d, nullptr, "Unknown"}, 2623 {0x3d, nullptr, "ChangeKernelTraceState32"},
2624 {0x3e, nullptr, "Unknown"}, 2624 {0x3e, nullptr, "Unknown3e"},
2625 {0x3f, nullptr, "Unknown"}, 2625 {0x3f, nullptr, "Unknown3f"},
2626 {0x40, nullptr, "CreateSession32"}, 2626 {0x40, nullptr, "CreateSession32"},
2627 {0x41, nullptr, "AcceptSession32"}, 2627 {0x41, nullptr, "AcceptSession32"},
2628 {0x42, nullptr, "Unknown"}, 2628 {0x42, nullptr, "ReplyAndReceiveLight32"},
2629 {0x43, nullptr, "ReplyAndReceive32"}, 2629 {0x43, nullptr, "ReplyAndReceive32"},
2630 {0x44, nullptr, "Unknown"}, 2630 {0x44, nullptr, "ReplyAndReceiveWithUserBuffer32"},
2631 {0x45, SvcWrap32<CreateEvent32>, "CreateEvent32"}, 2631 {0x45, SvcWrap32<CreateEvent32>, "CreateEvent32"},
2632 {0x46, nullptr, "Unknown"}, 2632 {0x46, nullptr, "MapIoRegion32"},
2633 {0x47, nullptr, "Unknown"}, 2633 {0x47, nullptr, "UnmapIoRegion32"},
2634 {0x48, nullptr, "Unknown"}, 2634 {0x48, nullptr, "MapPhysicalMemoryUnsafe32"},
2635 {0x49, nullptr, "Unknown"}, 2635 {0x49, nullptr, "UnmapPhysicalMemoryUnsafe32"},
2636 {0x4a, nullptr, "Unknown"}, 2636 {0x4a, nullptr, "SetUnsafeLimit32"},
2637 {0x4b, nullptr, "Unknown"}, 2637 {0x4b, nullptr, "CreateCodeMemory32"},
2638 {0x4c, nullptr, "Unknown"}, 2638 {0x4c, nullptr, "ControlCodeMemory32"},
2639 {0x4d, nullptr, "Unknown"}, 2639 {0x4d, nullptr, "SleepSystem32"},
2640 {0x4e, nullptr, "Unknown"}, 2640 {0x4e, nullptr, "ReadWriteRegister32"},
2641 {0x4f, nullptr, "Unknown"}, 2641 {0x4f, nullptr, "SetProcessActivity32"},
2642 {0x50, nullptr, "Unknown"}, 2642 {0x50, nullptr, "CreateSharedMemory32"},
2643 {0x51, nullptr, "Unknown"}, 2643 {0x51, nullptr, "MapTransferMemory32"},
2644 {0x52, nullptr, "Unknown"}, 2644 {0x52, nullptr, "UnmapTransferMemory32"},
2645 {0x53, nullptr, "Unknown"}, 2645 {0x53, nullptr, "CreateInterruptEvent32"},
2646 {0x54, nullptr, "Unknown"}, 2646 {0x54, nullptr, "QueryPhysicalAddress32"},
2647 {0x55, nullptr, "Unknown"}, 2647 {0x55, nullptr, "QueryIoMapping32"},
2648 {0x56, nullptr, "Unknown"}, 2648 {0x56, nullptr, "CreateDeviceAddressSpace32"},
2649 {0x57, nullptr, "Unknown"}, 2649 {0x57, nullptr, "AttachDeviceAddressSpace32"},
2650 {0x58, nullptr, "Unknown"}, 2650 {0x58, nullptr, "DetachDeviceAddressSpace32"},
2651 {0x59, nullptr, "Unknown"}, 2651 {0x59, nullptr, "MapDeviceAddressSpaceByForce32"},
2652 {0x5a, nullptr, "Unknown"}, 2652 {0x5a, nullptr, "MapDeviceAddressSpaceAligned32"},
2653 {0x5b, nullptr, "Unknown"}, 2653 {0x5b, nullptr, "MapDeviceAddressSpace32"},
2654 {0x5c, nullptr, "Unknown"}, 2654 {0x5c, nullptr, "UnmapDeviceAddressSpace32"},
2655 {0x5d, nullptr, "Unknown"}, 2655 {0x5d, nullptr, "InvalidateProcessDataCache32"},
2656 {0x5e, nullptr, "Unknown"}, 2656 {0x5e, nullptr, "StoreProcessDataCache32"},
2657 {0x5F, SvcWrap32<FlushProcessDataCache32>, "FlushProcessDataCache32"}, 2657 {0x5F, SvcWrap32<FlushProcessDataCache32>, "FlushProcessDataCache32"},
2658 {0x60, nullptr, "Unknown"}, 2658 {0x60, nullptr, "StoreProcessDataCache32"},
2659 {0x61, nullptr, "Unknown"}, 2659 {0x61, nullptr, "BreakDebugProcess32"},
2660 {0x62, nullptr, "Unknown"}, 2660 {0x62, nullptr, "TerminateDebugProcess32"},
2661 {0x63, nullptr, "Unknown"}, 2661 {0x63, nullptr, "GetDebugEvent32"},
2662 {0x64, nullptr, "Unknown"}, 2662 {0x64, nullptr, "ContinueDebugEvent32"},
2663 {0x65, nullptr, "GetProcessList32"}, 2663 {0x65, nullptr, "GetProcessList32"},
2664 {0x66, nullptr, "Unknown"}, 2664 {0x66, nullptr, "GetThreadList"},
2665 {0x67, nullptr, "Unknown"}, 2665 {0x67, nullptr, "GetDebugThreadContext32"},
2666 {0x68, nullptr, "Unknown"}, 2666 {0x68, nullptr, "SetDebugThreadContext32"},
2667 {0x69, nullptr, "Unknown"}, 2667 {0x69, nullptr, "QueryDebugProcessMemory32"},
2668 {0x6A, nullptr, "Unknown"}, 2668 {0x6A, nullptr, "ReadDebugProcessMemory32"},
2669 {0x6B, nullptr, "Unknown"}, 2669 {0x6B, nullptr, "WriteDebugProcessMemory32"},
2670 {0x6C, nullptr, "Unknown"}, 2670 {0x6C, nullptr, "SetHardwareBreakPoint32"},
2671 {0x6D, nullptr, "Unknown"}, 2671 {0x6D, nullptr, "GetDebugThreadParam32"},
2672 {0x6E, nullptr, "Unknown"}, 2672 {0x6E, nullptr, "Unknown6E"},
2673 {0x6f, nullptr, "GetSystemInfo32"}, 2673 {0x6f, nullptr, "GetSystemInfo32"},
2674 {0x70, nullptr, "CreatePort32"}, 2674 {0x70, nullptr, "CreatePort32"},
2675 {0x71, nullptr, "ManageNamedPort32"}, 2675 {0x71, nullptr, "ManageNamedPort32"},
2676 {0x72, nullptr, "ConnectToPort32"}, 2676 {0x72, nullptr, "ConnectToPort32"},
2677 {0x73, nullptr, "SetProcessMemoryPermission32"}, 2677 {0x73, nullptr, "SetProcessMemoryPermission32"},
2678 {0x74, nullptr, "Unknown"}, 2678 {0x74, nullptr, "MapProcessMemory32"},
2679 {0x75, nullptr, "Unknown"}, 2679 {0x75, nullptr, "UnmapProcessMemory32"},
2680 {0x76, nullptr, "Unknown"}, 2680 {0x76, nullptr, "QueryProcessMemory32"},
2681 {0x77, nullptr, "MapProcessCodeMemory32"}, 2681 {0x77, nullptr, "MapProcessCodeMemory32"},
2682 {0x78, nullptr, "UnmapProcessCodeMemory32"}, 2682 {0x78, nullptr, "UnmapProcessCodeMemory32"},
2683 {0x79, nullptr, "Unknown"}, 2683 {0x79, nullptr, "CreateProcess32"},
2684 {0x7A, nullptr, "Unknown"}, 2684 {0x7A, nullptr, "StartProcess32"},
2685 {0x7B, nullptr, "TerminateProcess32"}, 2685 {0x7B, nullptr, "TerminateProcess32"},
2686 {0x7C, nullptr, "GetProcessInfo32"}, 2686 {0x7C, nullptr, "GetProcessInfo32"},
2687 {0x7D, nullptr, "CreateResourceLimit32"}, 2687 {0x7D, nullptr, "CreateResourceLimit32"},
@@ -2754,7 +2754,7 @@ static const FunctionDef SVC_Table_32[] = {
2754}; 2754};
2755 2755
2756static const FunctionDef SVC_Table_64[] = { 2756static const FunctionDef SVC_Table_64[] = {
2757 {0x00, nullptr, "Unknown"}, 2757 {0x00, nullptr, "Unknown0"},
2758 {0x01, SvcWrap64<SetHeapSize>, "SetHeapSize"}, 2758 {0x01, SvcWrap64<SetHeapSize>, "SetHeapSize"},
2759 {0x02, SvcWrap64<SetMemoryPermission>, "SetMemoryPermission"}, 2759 {0x02, SvcWrap64<SetMemoryPermission>, "SetMemoryPermission"},
2760 {0x03, SvcWrap64<SetMemoryAttribute>, "SetMemoryAttribute"}, 2760 {0x03, SvcWrap64<SetMemoryAttribute>, "SetMemoryAttribute"},
@@ -2809,23 +2809,23 @@ static const FunctionDef SVC_Table_64[] = {
2809 {0x34, SvcWrap64<WaitForAddress>, "WaitForAddress"}, 2809 {0x34, SvcWrap64<WaitForAddress>, "WaitForAddress"},
2810 {0x35, SvcWrap64<SignalToAddress>, "SignalToAddress"}, 2810 {0x35, SvcWrap64<SignalToAddress>, "SignalToAddress"},
2811 {0x36, SvcWrap64<SynchronizePreemptionState>, "SynchronizePreemptionState"}, 2811 {0x36, SvcWrap64<SynchronizePreemptionState>, "SynchronizePreemptionState"},
2812 {0x37, nullptr, "Unknown"}, 2812 {0x37, nullptr, "GetResourceLimitPeakValue"},
2813 {0x38, nullptr, "Unknown"}, 2813 {0x38, nullptr, "Unknown38"},
2814 {0x39, nullptr, "Unknown"}, 2814 {0x39, nullptr, "CreateIoPool"},
2815 {0x3A, nullptr, "Unknown"}, 2815 {0x3A, nullptr, "CreateIoRegion"},
2816 {0x3B, nullptr, "Unknown"}, 2816 {0x3B, nullptr, "Unknown3B"},
2817 {0x3C, SvcWrap64<KernelDebug>, "KernelDebug"}, 2817 {0x3C, SvcWrap64<KernelDebug>, "KernelDebug"},
2818 {0x3D, SvcWrap64<ChangeKernelTraceState>, "ChangeKernelTraceState"}, 2818 {0x3D, SvcWrap64<ChangeKernelTraceState>, "ChangeKernelTraceState"},
2819 {0x3E, nullptr, "Unknown"}, 2819 {0x3E, nullptr, "Unknown3e"},
2820 {0x3F, nullptr, "Unknown"}, 2820 {0x3F, nullptr, "Unknown3f"},
2821 {0x40, nullptr, "CreateSession"}, 2821 {0x40, nullptr, "CreateSession"},
2822 {0x41, nullptr, "AcceptSession"}, 2822 {0x41, nullptr, "AcceptSession"},
2823 {0x42, nullptr, "ReplyAndReceiveLight"}, 2823 {0x42, nullptr, "ReplyAndReceiveLight"},
2824 {0x43, nullptr, "ReplyAndReceive"}, 2824 {0x43, nullptr, "ReplyAndReceive"},
2825 {0x44, nullptr, "ReplyAndReceiveWithUserBuffer"}, 2825 {0x44, nullptr, "ReplyAndReceiveWithUserBuffer"},
2826 {0x45, SvcWrap64<CreateEvent>, "CreateEvent"}, 2826 {0x45, SvcWrap64<CreateEvent>, "CreateEvent"},
2827 {0x46, nullptr, "Unknown"}, 2827 {0x46, nullptr, "MapIoRegion"},
2828 {0x47, nullptr, "Unknown"}, 2828 {0x47, nullptr, "UnmapIoRegion"},
2829 {0x48, nullptr, "MapPhysicalMemoryUnsafe"}, 2829 {0x48, nullptr, "MapPhysicalMemoryUnsafe"},
2830 {0x49, nullptr, "UnmapPhysicalMemoryUnsafe"}, 2830 {0x49, nullptr, "UnmapPhysicalMemoryUnsafe"},
2831 {0x4A, nullptr, "SetUnsafeLimit"}, 2831 {0x4A, nullptr, "SetUnsafeLimit"},
@@ -2864,7 +2864,7 @@ static const FunctionDef SVC_Table_64[] = {
2864 {0x6B, nullptr, "WriteDebugProcessMemory"}, 2864 {0x6B, nullptr, "WriteDebugProcessMemory"},
2865 {0x6C, nullptr, "SetHardwareBreakPoint"}, 2865 {0x6C, nullptr, "SetHardwareBreakPoint"},
2866 {0x6D, nullptr, "GetDebugThreadParam"}, 2866 {0x6D, nullptr, "GetDebugThreadParam"},
2867 {0x6E, nullptr, "Unknown"}, 2867 {0x6E, nullptr, "Unknown6E"},
2868 {0x6F, nullptr, "GetSystemInfo"}, 2868 {0x6F, nullptr, "GetSystemInfo"},
2869 {0x70, nullptr, "CreatePort"}, 2869 {0x70, nullptr, "CreatePort"},
2870 {0x71, nullptr, "ManageNamedPort"}, 2870 {0x71, nullptr, "ManageNamedPort"},