diff options
| author | 2018-01-17 20:34:52 -0500 | |
|---|---|---|
| committer | 2018-01-17 20:38:23 -0500 | |
| commit | 4497eb45289ee972969518048f90d2e93a9623f6 (patch) | |
| tree | f047d8ed08190265f91f586899646a9500acb2b4 /src/core/hle/kernel/svc.cpp | |
| parent | svc: Add CreateJitMemory and MapJitMemory svc strings (diff) | |
| download | yuzu-4497eb45289ee972969518048f90d2e93a9623f6.tar.gz yuzu-4497eb45289ee972969518048f90d2e93a9623f6.tar.xz yuzu-4497eb45289ee972969518048f90d2e93a9623f6.zip | |
svc: Rename some entries to match their analogue on SwitchBrew
Makes the codebase a little more consistent with regards to available documentation. Also amends the duplicate case where there was a similar entry at 0x72 named ConnectToPort.
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index aa587c379..45da842ef 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp | |||
| @@ -57,7 +57,7 @@ static ResultCode UnmapMemory(VAddr dst_addr, VAddr src_addr, u64 size) { | |||
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | /// Connect to an OS service given the port name, returns the handle to the port to out | 59 | /// Connect to an OS service given the port name, returns the handle to the port to out |
| 60 | static ResultCode ConnectToPort(Handle* out_handle, VAddr port_name_address) { | 60 | static ResultCode ConnectToNamedPort(Handle* out_handle, VAddr port_name_address) { |
| 61 | if (!Memory::IsValidVirtualAddress(port_name_address)) | 61 | if (!Memory::IsValidVirtualAddress(port_name_address)) |
| 62 | return ERR_NOT_FOUND; | 62 | return ERR_NOT_FOUND; |
| 63 | 63 | ||
| @@ -253,8 +253,8 @@ static ResultCode CancelSynchronization(Handle thread_handle) { | |||
| 253 | } | 253 | } |
| 254 | 254 | ||
| 255 | /// Attempts to locks a mutex, creating it if it does not already exist | 255 | /// Attempts to locks a mutex, creating it if it does not already exist |
| 256 | static ResultCode LockMutex(Handle holding_thread_handle, VAddr mutex_addr, | 256 | static ResultCode ArbitrateLock(Handle holding_thread_handle, VAddr mutex_addr, |
| 257 | Handle requesting_thread_handle) { | 257 | Handle requesting_thread_handle) { |
| 258 | LOG_TRACE(Kernel_SVC, "called holding_thread_handle=0x%08X, mutex_addr=0x%llx, " | 258 | LOG_TRACE(Kernel_SVC, "called holding_thread_handle=0x%08X, mutex_addr=0x%llx, " |
| 259 | "requesting_current_thread_handle=0x%08X", | 259 | "requesting_current_thread_handle=0x%08X", |
| 260 | holding_thread_handle, mutex_addr, requesting_thread_handle); | 260 | holding_thread_handle, mutex_addr, requesting_thread_handle); |
| @@ -277,7 +277,7 @@ static ResultCode LockMutex(Handle holding_thread_handle, VAddr mutex_addr, | |||
| 277 | } | 277 | } |
| 278 | 278 | ||
| 279 | /// Unlock a mutex | 279 | /// Unlock a mutex |
| 280 | static ResultCode UnlockMutex(VAddr mutex_addr) { | 280 | static ResultCode ArbitrateUnlock(VAddr mutex_addr) { |
| 281 | LOG_TRACE(Kernel_SVC, "called mutex_addr=0x%llx", mutex_addr); | 281 | LOG_TRACE(Kernel_SVC, "called mutex_addr=0x%llx", mutex_addr); |
| 282 | 282 | ||
| 283 | SharedPtr<Mutex> mutex = g_object_address_table.Get<Mutex>(mutex_addr); | 283 | SharedPtr<Mutex> mutex = g_object_address_table.Get<Mutex>(mutex_addr); |
| @@ -774,12 +774,12 @@ static const FunctionDef SVC_Table[] = { | |||
| 774 | {0x17, SvcWrap<ResetSignal>, "ResetSignal"}, | 774 | {0x17, SvcWrap<ResetSignal>, "ResetSignal"}, |
| 775 | {0x18, SvcWrap<WaitSynchronization>, "WaitSynchronization"}, | 775 | {0x18, SvcWrap<WaitSynchronization>, "WaitSynchronization"}, |
| 776 | {0x19, SvcWrap<CancelSynchronization>, "CancelSynchronization"}, | 776 | {0x19, SvcWrap<CancelSynchronization>, "CancelSynchronization"}, |
| 777 | {0x1A, SvcWrap<LockMutex>, "LockMutex"}, | 777 | {0x1A, SvcWrap<ArbitrateLock>, "ArbitrateLock"}, |
| 778 | {0x1B, SvcWrap<UnlockMutex>, "UnlockMutex"}, | 778 | {0x1B, SvcWrap<ArbitrateUnlock>, "ArbitrateUnlock"}, |
| 779 | {0x1C, SvcWrap<WaitProcessWideKeyAtomic>, "WaitProcessWideKeyAtomic"}, | 779 | {0x1C, SvcWrap<WaitProcessWideKeyAtomic>, "WaitProcessWideKeyAtomic"}, |
| 780 | {0x1D, SvcWrap<SignalProcessWideKey>, "SignalProcessWideKey"}, | 780 | {0x1D, SvcWrap<SignalProcessWideKey>, "SignalProcessWideKey"}, |
| 781 | {0x1E, SvcWrap<GetSystemTick>, "GetSystemTick"}, | 781 | {0x1E, SvcWrap<GetSystemTick>, "GetSystemTick"}, |
| 782 | {0x1F, SvcWrap<ConnectToPort>, "ConnectToPort"}, | 782 | {0x1F, SvcWrap<ConnectToNamedPort>, "ConnectToNamedPort"}, |
| 783 | {0x20, nullptr, "SendSyncRequestLight"}, | 783 | {0x20, nullptr, "SendSyncRequestLight"}, |
| 784 | {0x21, SvcWrap<SendSyncRequest>, "SendSyncRequest"}, | 784 | {0x21, SvcWrap<SendSyncRequest>, "SendSyncRequest"}, |
| 785 | {0x22, nullptr, "SendSyncRequestWithUserBuffer"}, | 785 | {0x22, nullptr, "SendSyncRequestWithUserBuffer"}, |