diff options
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 104 |
1 files changed, 52 insertions, 52 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 81e23f700..28bcae6e7 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp | |||
| @@ -132,7 +132,7 @@ ResultCode MapUnmapMemorySanityChecks(const KPageTable& manager, VAddr dst_addr, | |||
| 132 | return ResultInvalidMemoryRegion; | 132 | return ResultInvalidMemoryRegion; |
| 133 | } | 133 | } |
| 134 | 134 | ||
| 135 | return RESULT_SUCCESS; | 135 | return ResultSuccess; |
| 136 | } | 136 | } |
| 137 | 137 | ||
| 138 | enum class ResourceLimitValueType { | 138 | enum class ResourceLimitValueType { |
| @@ -164,7 +164,7 @@ static ResultCode SetHeapSize(Core::System& system, VAddr* heap_addr, u64 heap_s | |||
| 164 | 164 | ||
| 165 | CASCADE_RESULT(*heap_addr, page_table.SetHeapSize(heap_size)); | 165 | CASCADE_RESULT(*heap_addr, page_table.SetHeapSize(heap_size)); |
| 166 | 166 | ||
| 167 | return RESULT_SUCCESS; | 167 | return ResultSuccess; |
| 168 | } | 168 | } |
| 169 | 169 | ||
| 170 | static ResultCode SetHeapSize32(Core::System& system, u32* heap_addr, u32 heap_size) { | 170 | static ResultCode SetHeapSize32(Core::System& system, u32* heap_addr, u32 heap_size) { |
| @@ -305,7 +305,7 @@ static ResultCode ConnectToNamedPort(Core::System& system, Handle* out, VAddr po | |||
| 305 | 305 | ||
| 306 | // We succeeded. | 306 | // We succeeded. |
| 307 | handle_guard.Cancel(); | 307 | handle_guard.Cancel(); |
| 308 | return RESULT_SUCCESS; | 308 | return ResultSuccess; |
| 309 | } | 309 | } |
| 310 | 310 | ||
| 311 | static ResultCode ConnectToNamedPort32(Core::System& system, Handle* out_handle, | 311 | static ResultCode ConnectToNamedPort32(Core::System& system, Handle* out_handle, |
| @@ -349,7 +349,7 @@ static ResultCode GetThreadId(Core::System& system, u64* out_thread_id, Handle t | |||
| 349 | 349 | ||
| 350 | // Get the thread's id. | 350 | // Get the thread's id. |
| 351 | *out_thread_id = thread->GetId(); | 351 | *out_thread_id = thread->GetId(); |
| 352 | return RESULT_SUCCESS; | 352 | return ResultSuccess; |
| 353 | } | 353 | } |
| 354 | 354 | ||
| 355 | static ResultCode GetThreadId32(Core::System& system, u32* out_thread_id_low, | 355 | static ResultCode GetThreadId32(Core::System& system, u32* out_thread_id_low, |
| @@ -454,7 +454,7 @@ static ResultCode CancelSynchronization(Core::System& system, Handle handle) { | |||
| 454 | 454 | ||
| 455 | // Cancel the thread's wait. | 455 | // Cancel the thread's wait. |
| 456 | thread->WaitCancel(); | 456 | thread->WaitCancel(); |
| 457 | return RESULT_SUCCESS; | 457 | return ResultSuccess; |
| 458 | } | 458 | } |
| 459 | 459 | ||
| 460 | static ResultCode CancelSynchronization32(Core::System& system, Handle handle) { | 460 | static ResultCode CancelSynchronization32(Core::System& system, Handle handle) { |
| @@ -715,76 +715,76 @@ static ResultCode GetInfo(Core::System& system, u64* result, u64 info_id, Handle | |||
| 715 | switch (info_id_type) { | 715 | switch (info_id_type) { |
| 716 | case GetInfoType::AllowedCPUCoreMask: | 716 | case GetInfoType::AllowedCPUCoreMask: |
| 717 | *result = process->GetCoreMask(); | 717 | *result = process->GetCoreMask(); |
| 718 | return RESULT_SUCCESS; | 718 | return ResultSuccess; |
| 719 | 719 | ||
| 720 | case GetInfoType::AllowedThreadPriorityMask: | 720 | case GetInfoType::AllowedThreadPriorityMask: |
| 721 | *result = process->GetPriorityMask(); | 721 | *result = process->GetPriorityMask(); |
| 722 | return RESULT_SUCCESS; | 722 | return ResultSuccess; |
| 723 | 723 | ||
| 724 | case GetInfoType::MapRegionBaseAddr: | 724 | case GetInfoType::MapRegionBaseAddr: |
| 725 | *result = process->PageTable().GetAliasRegionStart(); | 725 | *result = process->PageTable().GetAliasRegionStart(); |
| 726 | return RESULT_SUCCESS; | 726 | return ResultSuccess; |
| 727 | 727 | ||
| 728 | case GetInfoType::MapRegionSize: | 728 | case GetInfoType::MapRegionSize: |
| 729 | *result = process->PageTable().GetAliasRegionSize(); | 729 | *result = process->PageTable().GetAliasRegionSize(); |
| 730 | return RESULT_SUCCESS; | 730 | return ResultSuccess; |
| 731 | 731 | ||
| 732 | case GetInfoType::HeapRegionBaseAddr: | 732 | case GetInfoType::HeapRegionBaseAddr: |
| 733 | *result = process->PageTable().GetHeapRegionStart(); | 733 | *result = process->PageTable().GetHeapRegionStart(); |
| 734 | return RESULT_SUCCESS; | 734 | return ResultSuccess; |
| 735 | 735 | ||
| 736 | case GetInfoType::HeapRegionSize: | 736 | case GetInfoType::HeapRegionSize: |
| 737 | *result = process->PageTable().GetHeapRegionSize(); | 737 | *result = process->PageTable().GetHeapRegionSize(); |
| 738 | return RESULT_SUCCESS; | 738 | return ResultSuccess; |
| 739 | 739 | ||
| 740 | case GetInfoType::ASLRRegionBaseAddr: | 740 | case GetInfoType::ASLRRegionBaseAddr: |
| 741 | *result = process->PageTable().GetAliasCodeRegionStart(); | 741 | *result = process->PageTable().GetAliasCodeRegionStart(); |
| 742 | return RESULT_SUCCESS; | 742 | return ResultSuccess; |
| 743 | 743 | ||
| 744 | case GetInfoType::ASLRRegionSize: | 744 | case GetInfoType::ASLRRegionSize: |
| 745 | *result = process->PageTable().GetAliasCodeRegionSize(); | 745 | *result = process->PageTable().GetAliasCodeRegionSize(); |
| 746 | return RESULT_SUCCESS; | 746 | return ResultSuccess; |
| 747 | 747 | ||
| 748 | case GetInfoType::StackRegionBaseAddr: | 748 | case GetInfoType::StackRegionBaseAddr: |
| 749 | *result = process->PageTable().GetStackRegionStart(); | 749 | *result = process->PageTable().GetStackRegionStart(); |
| 750 | return RESULT_SUCCESS; | 750 | return ResultSuccess; |
| 751 | 751 | ||
| 752 | case GetInfoType::StackRegionSize: | 752 | case GetInfoType::StackRegionSize: |
| 753 | *result = process->PageTable().GetStackRegionSize(); | 753 | *result = process->PageTable().GetStackRegionSize(); |
| 754 | return RESULT_SUCCESS; | 754 | return ResultSuccess; |
| 755 | 755 | ||
| 756 | case GetInfoType::TotalPhysicalMemoryAvailable: | 756 | case GetInfoType::TotalPhysicalMemoryAvailable: |
| 757 | *result = process->GetTotalPhysicalMemoryAvailable(); | 757 | *result = process->GetTotalPhysicalMemoryAvailable(); |
| 758 | return RESULT_SUCCESS; | 758 | return ResultSuccess; |
| 759 | 759 | ||
| 760 | case GetInfoType::TotalPhysicalMemoryUsed: | 760 | case GetInfoType::TotalPhysicalMemoryUsed: |
| 761 | *result = process->GetTotalPhysicalMemoryUsed(); | 761 | *result = process->GetTotalPhysicalMemoryUsed(); |
| 762 | return RESULT_SUCCESS; | 762 | return ResultSuccess; |
| 763 | 763 | ||
| 764 | case GetInfoType::SystemResourceSize: | 764 | case GetInfoType::SystemResourceSize: |
| 765 | *result = process->GetSystemResourceSize(); | 765 | *result = process->GetSystemResourceSize(); |
| 766 | return RESULT_SUCCESS; | 766 | return ResultSuccess; |
| 767 | 767 | ||
| 768 | case GetInfoType::SystemResourceUsage: | 768 | case GetInfoType::SystemResourceUsage: |
| 769 | LOG_WARNING(Kernel_SVC, "(STUBBED) Attempted to query system resource usage"); | 769 | LOG_WARNING(Kernel_SVC, "(STUBBED) Attempted to query system resource usage"); |
| 770 | *result = process->GetSystemResourceUsage(); | 770 | *result = process->GetSystemResourceUsage(); |
| 771 | return RESULT_SUCCESS; | 771 | return ResultSuccess; |
| 772 | 772 | ||
| 773 | case GetInfoType::TitleId: | 773 | case GetInfoType::TitleId: |
| 774 | *result = process->GetTitleID(); | 774 | *result = process->GetTitleID(); |
| 775 | return RESULT_SUCCESS; | 775 | return ResultSuccess; |
| 776 | 776 | ||
| 777 | case GetInfoType::UserExceptionContextAddr: | 777 | case GetInfoType::UserExceptionContextAddr: |
| 778 | *result = process->GetTLSRegionAddress(); | 778 | *result = process->GetTLSRegionAddress(); |
| 779 | return RESULT_SUCCESS; | 779 | return ResultSuccess; |
| 780 | 780 | ||
| 781 | case GetInfoType::TotalPhysicalMemoryAvailableWithoutSystemResource: | 781 | case GetInfoType::TotalPhysicalMemoryAvailableWithoutSystemResource: |
| 782 | *result = process->GetTotalPhysicalMemoryAvailableWithoutSystemResource(); | 782 | *result = process->GetTotalPhysicalMemoryAvailableWithoutSystemResource(); |
| 783 | return RESULT_SUCCESS; | 783 | return ResultSuccess; |
| 784 | 784 | ||
| 785 | case GetInfoType::TotalPhysicalMemoryUsedWithoutSystemResource: | 785 | case GetInfoType::TotalPhysicalMemoryUsedWithoutSystemResource: |
| 786 | *result = process->GetTotalPhysicalMemoryUsedWithoutSystemResource(); | 786 | *result = process->GetTotalPhysicalMemoryUsedWithoutSystemResource(); |
| 787 | return RESULT_SUCCESS; | 787 | return ResultSuccess; |
| 788 | 788 | ||
| 789 | default: | 789 | default: |
| 790 | break; | 790 | break; |
| @@ -796,7 +796,7 @@ static ResultCode GetInfo(Core::System& system, u64* result, u64 info_id, Handle | |||
| 796 | 796 | ||
| 797 | case GetInfoType::IsCurrentProcessBeingDebugged: | 797 | case GetInfoType::IsCurrentProcessBeingDebugged: |
| 798 | *result = 0; | 798 | *result = 0; |
| 799 | return RESULT_SUCCESS; | 799 | return ResultSuccess; |
| 800 | 800 | ||
| 801 | case GetInfoType::RegisterResourceLimit: { | 801 | case GetInfoType::RegisterResourceLimit: { |
| 802 | if (handle != 0) { | 802 | if (handle != 0) { |
| @@ -816,14 +816,14 @@ static ResultCode GetInfo(Core::System& system, u64* result, u64 info_id, Handle | |||
| 816 | if (!resource_limit) { | 816 | if (!resource_limit) { |
| 817 | *result = Svc::InvalidHandle; | 817 | *result = Svc::InvalidHandle; |
| 818 | // Yes, the kernel considers this a successful operation. | 818 | // Yes, the kernel considers this a successful operation. |
| 819 | return RESULT_SUCCESS; | 819 | return ResultSuccess; |
| 820 | } | 820 | } |
| 821 | 821 | ||
| 822 | Handle resource_handle{}; | 822 | Handle resource_handle{}; |
| 823 | R_TRY(handle_table.Add(&resource_handle, resource_limit)); | 823 | R_TRY(handle_table.Add(&resource_handle, resource_limit)); |
| 824 | 824 | ||
| 825 | *result = resource_handle; | 825 | *result = resource_handle; |
| 826 | return RESULT_SUCCESS; | 826 | return ResultSuccess; |
| 827 | } | 827 | } |
| 828 | 828 | ||
| 829 | case GetInfoType::RandomEntropy: | 829 | case GetInfoType::RandomEntropy: |
| @@ -840,13 +840,13 @@ static ResultCode GetInfo(Core::System& system, u64* result, u64 info_id, Handle | |||
| 840 | } | 840 | } |
| 841 | 841 | ||
| 842 | *result = system.Kernel().CurrentProcess()->GetRandomEntropy(info_sub_id); | 842 | *result = system.Kernel().CurrentProcess()->GetRandomEntropy(info_sub_id); |
| 843 | return RESULT_SUCCESS; | 843 | return ResultSuccess; |
| 844 | 844 | ||
| 845 | case GetInfoType::PrivilegedProcessId: | 845 | case GetInfoType::PrivilegedProcessId: |
| 846 | LOG_WARNING(Kernel_SVC, | 846 | LOG_WARNING(Kernel_SVC, |
| 847 | "(STUBBED) Attempted to query privileged process id bounds, returned 0"); | 847 | "(STUBBED) Attempted to query privileged process id bounds, returned 0"); |
| 848 | *result = 0; | 848 | *result = 0; |
| 849 | return RESULT_SUCCESS; | 849 | return ResultSuccess; |
| 850 | 850 | ||
| 851 | case GetInfoType::ThreadTickCount: { | 851 | case GetInfoType::ThreadTickCount: { |
| 852 | constexpr u64 num_cpus = 4; | 852 | constexpr u64 num_cpus = 4; |
| @@ -881,7 +881,7 @@ static ResultCode GetInfo(Core::System& system, u64* result, u64 info_id, Handle | |||
| 881 | } | 881 | } |
| 882 | 882 | ||
| 883 | *result = out_ticks; | 883 | *result = out_ticks; |
| 884 | return RESULT_SUCCESS; | 884 | return ResultSuccess; |
| 885 | } | 885 | } |
| 886 | 886 | ||
| 887 | default: | 887 | default: |
| @@ -1034,7 +1034,7 @@ static ResultCode SetThreadActivity(Core::System& system, Handle thread_handle, | |||
| 1034 | // Set the activity. | 1034 | // Set the activity. |
| 1035 | R_TRY(thread->SetActivity(thread_activity)); | 1035 | R_TRY(thread->SetActivity(thread_activity)); |
| 1036 | 1036 | ||
| 1037 | return RESULT_SUCCESS; | 1037 | return ResultSuccess; |
| 1038 | } | 1038 | } |
| 1039 | 1039 | ||
| 1040 | static ResultCode SetThreadActivity32(Core::System& system, Handle thread_handle, | 1040 | static ResultCode SetThreadActivity32(Core::System& system, Handle thread_handle, |
| @@ -1094,10 +1094,10 @@ static ResultCode GetThreadContext(Core::System& system, VAddr out_context, Hand | |||
| 1094 | // Copy the thread context to user space. | 1094 | // Copy the thread context to user space. |
| 1095 | system.Memory().WriteBlock(out_context, context.data(), context.size()); | 1095 | system.Memory().WriteBlock(out_context, context.data(), context.size()); |
| 1096 | 1096 | ||
| 1097 | return RESULT_SUCCESS; | 1097 | return ResultSuccess; |
| 1098 | } | 1098 | } |
| 1099 | 1099 | ||
| 1100 | return RESULT_SUCCESS; | 1100 | return ResultSuccess; |
| 1101 | } | 1101 | } |
| 1102 | 1102 | ||
| 1103 | static ResultCode GetThreadContext32(Core::System& system, u32 out_context, Handle thread_handle) { | 1103 | static ResultCode GetThreadContext32(Core::System& system, u32 out_context, Handle thread_handle) { |
| @@ -1115,7 +1115,7 @@ static ResultCode GetThreadPriority(Core::System& system, u32* out_priority, Han | |||
| 1115 | 1115 | ||
| 1116 | // Get the thread's priority. | 1116 | // Get the thread's priority. |
| 1117 | *out_priority = thread->GetPriority(); | 1117 | *out_priority = thread->GetPriority(); |
| 1118 | return RESULT_SUCCESS; | 1118 | return ResultSuccess; |
| 1119 | } | 1119 | } |
| 1120 | 1120 | ||
| 1121 | static ResultCode GetThreadPriority32(Core::System& system, u32* out_priority, Handle handle) { | 1121 | static ResultCode GetThreadPriority32(Core::System& system, u32* out_priority, Handle handle) { |
| @@ -1138,7 +1138,7 @@ static ResultCode SetThreadPriority(Core::System& system, Handle thread_handle, | |||
| 1138 | 1138 | ||
| 1139 | // Set the thread priority. | 1139 | // Set the thread priority. |
| 1140 | thread->SetBasePriority(priority); | 1140 | thread->SetBasePriority(priority); |
| 1141 | return RESULT_SUCCESS; | 1141 | return ResultSuccess; |
| 1142 | } | 1142 | } |
| 1143 | 1143 | ||
| 1144 | static ResultCode SetThreadPriority32(Core::System& system, Handle thread_handle, u32 priority) { | 1144 | static ResultCode SetThreadPriority32(Core::System& system, Handle thread_handle, u32 priority) { |
| @@ -1207,7 +1207,7 @@ static ResultCode MapSharedMemory(Core::System& system, Handle shmem_handle, VAd | |||
| 1207 | 1207 | ||
| 1208 | // We succeeded. | 1208 | // We succeeded. |
| 1209 | guard.Cancel(); | 1209 | guard.Cancel(); |
| 1210 | return RESULT_SUCCESS; | 1210 | return ResultSuccess; |
| 1211 | } | 1211 | } |
| 1212 | 1212 | ||
| 1213 | static ResultCode MapSharedMemory32(Core::System& system, Handle shmem_handle, u32 address, | 1213 | static ResultCode MapSharedMemory32(Core::System& system, Handle shmem_handle, u32 address, |
| @@ -1240,7 +1240,7 @@ static ResultCode UnmapSharedMemory(Core::System& system, Handle shmem_handle, V | |||
| 1240 | // Remove the shared memory from the process. | 1240 | // Remove the shared memory from the process. |
| 1241 | process.RemoveSharedMemory(shmem.GetPointerUnsafe(), address, size); | 1241 | process.RemoveSharedMemory(shmem.GetPointerUnsafe(), address, size); |
| 1242 | 1242 | ||
| 1243 | return RESULT_SUCCESS; | 1243 | return ResultSuccess; |
| 1244 | } | 1244 | } |
| 1245 | 1245 | ||
| 1246 | static ResultCode UnmapSharedMemory32(Core::System& system, Handle shmem_handle, u32 address, | 1246 | static ResultCode UnmapSharedMemory32(Core::System& system, Handle shmem_handle, u32 address, |
| @@ -1276,7 +1276,7 @@ static ResultCode QueryProcessMemory(Core::System& system, VAddr memory_info_add | |||
| 1276 | // Page info appears to be currently unused by the kernel and is always set to zero. | 1276 | // Page info appears to be currently unused by the kernel and is always set to zero. |
| 1277 | memory.Write32(page_info_address, 0); | 1277 | memory.Write32(page_info_address, 0); |
| 1278 | 1278 | ||
| 1279 | return RESULT_SUCCESS; | 1279 | return ResultSuccess; |
| 1280 | } | 1280 | } |
| 1281 | 1281 | ||
| 1282 | static ResultCode QueryMemory(Core::System& system, VAddr memory_info_address, | 1282 | static ResultCode QueryMemory(Core::System& system, VAddr memory_info_address, |
| @@ -1524,7 +1524,7 @@ static ResultCode CreateThread(Core::System& system, Handle* out_handle, VAddr e | |||
| 1524 | // Add the thread to the handle table. | 1524 | // Add the thread to the handle table. |
| 1525 | R_TRY(process.GetHandleTable().Add(out_handle, thread)); | 1525 | R_TRY(process.GetHandleTable().Add(out_handle, thread)); |
| 1526 | 1526 | ||
| 1527 | return RESULT_SUCCESS; | 1527 | return ResultSuccess; |
| 1528 | } | 1528 | } |
| 1529 | 1529 | ||
| 1530 | static ResultCode CreateThread32(Core::System& system, Handle* out_handle, u32 priority, | 1530 | static ResultCode CreateThread32(Core::System& system, Handle* out_handle, u32 priority, |
| @@ -1547,7 +1547,7 @@ static ResultCode StartThread(Core::System& system, Handle thread_handle) { | |||
| 1547 | // If we succeeded, persist a reference to the thread. | 1547 | // If we succeeded, persist a reference to the thread. |
| 1548 | thread->Open(); | 1548 | thread->Open(); |
| 1549 | 1549 | ||
| 1550 | return RESULT_SUCCESS; | 1550 | return ResultSuccess; |
| 1551 | } | 1551 | } |
| 1552 | 1552 | ||
| 1553 | static ResultCode StartThread32(Core::System& system, Handle thread_handle) { | 1553 | static ResultCode StartThread32(Core::System& system, Handle thread_handle) { |
| @@ -1796,7 +1796,7 @@ static ResultCode CloseHandle(Core::System& system, Handle handle) { | |||
| 1796 | R_UNLESS(system.Kernel().CurrentProcess()->GetHandleTable().Remove(handle), | 1796 | R_UNLESS(system.Kernel().CurrentProcess()->GetHandleTable().Remove(handle), |
| 1797 | ResultInvalidHandle); | 1797 | ResultInvalidHandle); |
| 1798 | 1798 | ||
| 1799 | return RESULT_SUCCESS; | 1799 | return ResultSuccess; |
| 1800 | } | 1800 | } |
| 1801 | 1801 | ||
| 1802 | static ResultCode CloseHandle32(Core::System& system, Handle handle) { | 1802 | static ResultCode CloseHandle32(Core::System& system, Handle handle) { |
| @@ -1891,7 +1891,7 @@ static ResultCode CreateTransferMemory(Core::System& system, Handle* out, VAddr | |||
| 1891 | // Add the transfer memory to the handle table. | 1891 | // Add the transfer memory to the handle table. |
| 1892 | R_TRY(handle_table.Add(out, trmem)); | 1892 | R_TRY(handle_table.Add(out, trmem)); |
| 1893 | 1893 | ||
| 1894 | return RESULT_SUCCESS; | 1894 | return ResultSuccess; |
| 1895 | } | 1895 | } |
| 1896 | 1896 | ||
| 1897 | static ResultCode CreateTransferMemory32(Core::System& system, Handle* out, u32 address, u32 size, | 1897 | static ResultCode CreateTransferMemory32(Core::System& system, Handle* out, u32 address, u32 size, |
| @@ -1911,7 +1911,7 @@ static ResultCode GetThreadCoreMask(Core::System& system, Handle thread_handle, | |||
| 1911 | // Get the core mask. | 1911 | // Get the core mask. |
| 1912 | R_TRY(thread->GetCoreMask(out_core_id, out_affinity_mask)); | 1912 | R_TRY(thread->GetCoreMask(out_core_id, out_affinity_mask)); |
| 1913 | 1913 | ||
| 1914 | return RESULT_SUCCESS; | 1914 | return ResultSuccess; |
| 1915 | } | 1915 | } |
| 1916 | 1916 | ||
| 1917 | static ResultCode GetThreadCoreMask32(Core::System& system, Handle thread_handle, s32* out_core_id, | 1917 | static ResultCode GetThreadCoreMask32(Core::System& system, Handle thread_handle, s32* out_core_id, |
| @@ -1952,7 +1952,7 @@ static ResultCode SetThreadCoreMask(Core::System& system, Handle thread_handle, | |||
| 1952 | // Set the core mask. | 1952 | // Set the core mask. |
| 1953 | R_TRY(thread->SetCoreMask(core_id, affinity_mask)); | 1953 | R_TRY(thread->SetCoreMask(core_id, affinity_mask)); |
| 1954 | 1954 | ||
| 1955 | return RESULT_SUCCESS; | 1955 | return ResultSuccess; |
| 1956 | } | 1956 | } |
| 1957 | 1957 | ||
| 1958 | static ResultCode SetThreadCoreMask32(Core::System& system, Handle thread_handle, s32 core_id, | 1958 | static ResultCode SetThreadCoreMask32(Core::System& system, Handle thread_handle, s32 core_id, |
| @@ -2051,7 +2051,7 @@ static ResultCode CreateEvent(Core::System& system, Handle* out_write, Handle* o | |||
| 2051 | 2051 | ||
| 2052 | // We succeeded. | 2052 | // We succeeded. |
| 2053 | handle_guard.Cancel(); | 2053 | handle_guard.Cancel(); |
| 2054 | return RESULT_SUCCESS; | 2054 | return ResultSuccess; |
| 2055 | } | 2055 | } |
| 2056 | 2056 | ||
| 2057 | static ResultCode CreateEvent32(Core::System& system, Handle* out_write, Handle* out_read) { | 2057 | static ResultCode CreateEvent32(Core::System& system, Handle* out_write, Handle* out_read) { |
| @@ -2081,7 +2081,7 @@ static ResultCode GetProcessInfo(Core::System& system, u64* out, Handle process_ | |||
| 2081 | } | 2081 | } |
| 2082 | 2082 | ||
| 2083 | *out = static_cast<u64>(process->GetStatus()); | 2083 | *out = static_cast<u64>(process->GetStatus()); |
| 2084 | return RESULT_SUCCESS; | 2084 | return ResultSuccess; |
| 2085 | } | 2085 | } |
| 2086 | 2086 | ||
| 2087 | static ResultCode CreateResourceLimit(Core::System& system, Handle* out_handle) { | 2087 | static ResultCode CreateResourceLimit(Core::System& system, Handle* out_handle) { |
| @@ -2104,7 +2104,7 @@ static ResultCode CreateResourceLimit(Core::System& system, Handle* out_handle) | |||
| 2104 | // Add the limit to the handle table. | 2104 | // Add the limit to the handle table. |
| 2105 | R_TRY(kernel.CurrentProcess()->GetHandleTable().Add(out_handle, resource_limit)); | 2105 | R_TRY(kernel.CurrentProcess()->GetHandleTable().Add(out_handle, resource_limit)); |
| 2106 | 2106 | ||
| 2107 | return RESULT_SUCCESS; | 2107 | return ResultSuccess; |
| 2108 | } | 2108 | } |
| 2109 | 2109 | ||
| 2110 | static ResultCode GetResourceLimitLimitValue(Core::System& system, u64* out_limit_value, | 2110 | static ResultCode GetResourceLimitLimitValue(Core::System& system, u64* out_limit_value, |
| @@ -2125,7 +2125,7 @@ static ResultCode GetResourceLimitLimitValue(Core::System& system, u64* out_limi | |||
| 2125 | // Get the limit value. | 2125 | // Get the limit value. |
| 2126 | *out_limit_value = resource_limit->GetLimitValue(which); | 2126 | *out_limit_value = resource_limit->GetLimitValue(which); |
| 2127 | 2127 | ||
| 2128 | return RESULT_SUCCESS; | 2128 | return ResultSuccess; |
| 2129 | } | 2129 | } |
| 2130 | 2130 | ||
| 2131 | static ResultCode GetResourceLimitCurrentValue(Core::System& system, u64* out_current_value, | 2131 | static ResultCode GetResourceLimitCurrentValue(Core::System& system, u64* out_current_value, |
| @@ -2146,7 +2146,7 @@ static ResultCode GetResourceLimitCurrentValue(Core::System& system, u64* out_cu | |||
| 2146 | // Get the current value. | 2146 | // Get the current value. |
| 2147 | *out_current_value = resource_limit->GetCurrentValue(which); | 2147 | *out_current_value = resource_limit->GetCurrentValue(which); |
| 2148 | 2148 | ||
| 2149 | return RESULT_SUCCESS; | 2149 | return ResultSuccess; |
| 2150 | } | 2150 | } |
| 2151 | 2151 | ||
| 2152 | static ResultCode SetResourceLimitLimitValue(Core::System& system, Handle resource_limit_handle, | 2152 | static ResultCode SetResourceLimitLimitValue(Core::System& system, Handle resource_limit_handle, |
| @@ -2166,7 +2166,7 @@ static ResultCode SetResourceLimitLimitValue(Core::System& system, Handle resour | |||
| 2166 | // Set the limit value. | 2166 | // Set the limit value. |
| 2167 | R_TRY(resource_limit->SetLimitValue(which, limit_value)); | 2167 | R_TRY(resource_limit->SetLimitValue(which, limit_value)); |
| 2168 | 2168 | ||
| 2169 | return RESULT_SUCCESS; | 2169 | return ResultSuccess; |
| 2170 | } | 2170 | } |
| 2171 | 2171 | ||
| 2172 | static ResultCode GetProcessList(Core::System& system, u32* out_num_processes, | 2172 | static ResultCode GetProcessList(Core::System& system, u32* out_num_processes, |
| @@ -2203,7 +2203,7 @@ static ResultCode GetProcessList(Core::System& system, u32* out_num_processes, | |||
| 2203 | } | 2203 | } |
| 2204 | 2204 | ||
| 2205 | *out_num_processes = static_cast<u32>(num_processes); | 2205 | *out_num_processes = static_cast<u32>(num_processes); |
| 2206 | return RESULT_SUCCESS; | 2206 | return ResultSuccess; |
| 2207 | } | 2207 | } |
| 2208 | 2208 | ||
| 2209 | static ResultCode GetThreadList(Core::System& system, u32* out_num_threads, VAddr out_thread_ids, | 2209 | static ResultCode GetThreadList(Core::System& system, u32* out_num_threads, VAddr out_thread_ids, |
| @@ -2243,7 +2243,7 @@ static ResultCode GetThreadList(Core::System& system, u32* out_num_threads, VAdd | |||
| 2243 | } | 2243 | } |
| 2244 | 2244 | ||
| 2245 | *out_num_threads = static_cast<u32>(num_threads); | 2245 | *out_num_threads = static_cast<u32>(num_threads); |
| 2246 | return RESULT_SUCCESS; | 2246 | return ResultSuccess; |
| 2247 | } | 2247 | } |
| 2248 | 2248 | ||
| 2249 | static ResultCode FlushProcessDataCache32([[maybe_unused]] Core::System& system, | 2249 | static ResultCode FlushProcessDataCache32([[maybe_unused]] Core::System& system, |
| @@ -2253,7 +2253,7 @@ static ResultCode FlushProcessDataCache32([[maybe_unused]] Core::System& system, | |||
| 2253 | // as all emulation is done in the same cache level in host architecture, thus data cache | 2253 | // as all emulation is done in the same cache level in host architecture, thus data cache |
| 2254 | // does not need flushing. | 2254 | // does not need flushing. |
| 2255 | LOG_DEBUG(Kernel_SVC, "called"); | 2255 | LOG_DEBUG(Kernel_SVC, "called"); |
| 2256 | return RESULT_SUCCESS; | 2256 | return ResultSuccess; |
| 2257 | } | 2257 | } |
| 2258 | 2258 | ||
| 2259 | namespace { | 2259 | namespace { |