diff options
Diffstat (limited to 'src/core/hle/syscall.cpp')
| -rw-r--r-- | src/core/hle/syscall.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/core/hle/syscall.cpp b/src/core/hle/syscall.cpp index df6412743..cc5b561b5 100644 --- a/src/core/hle/syscall.cpp +++ b/src/core/hle/syscall.cpp | |||
| @@ -82,15 +82,30 @@ Result SendSyncRequest(Handle session) { | |||
| 82 | /// Close a handle | 82 | /// Close a handle |
| 83 | Result CloseHandle(Handle handle) { | 83 | Result CloseHandle(Handle handle) { |
| 84 | // ImplementMe | 84 | // ImplementMe |
| 85 | NOTICE_LOG(OSHLE, "stubbed function CloseHandle"); | ||
| 85 | return 0; | 86 | return 0; |
| 86 | } | 87 | } |
| 87 | 88 | ||
| 88 | /// Wait for a handle to synchronize, timeout after the specified nanoseconds | 89 | /// Wait for a handle to synchronize, timeout after the specified nanoseconds |
| 89 | Result WaitSynchronization1(Handle handle, s64 nanoseconds) { | 90 | Result WaitSynchronization1(Handle handle, s64 nanoseconds) { |
| 90 | // ImplementMe | 91 | // ImplementMe |
| 92 | NOTICE_LOG(OSHLE, "stubbed function WaitSynchronization1"); | ||
| 91 | return 0; | 93 | return 0; |
| 92 | } | 94 | } |
| 93 | 95 | ||
| 96 | /// Create an address arbiter (to allocate access to shared resources) | ||
| 97 | Result CreateAddressArbiter(void* arbiter) { | ||
| 98 | // ImplementMe | ||
| 99 | NOTICE_LOG(OSHLE, "stubbed function CreateAddressArbiter"); | ||
| 100 | Core::g_app_core->SetReg(1, 0xDEADBEEF); | ||
| 101 | return 0; | ||
| 102 | } | ||
| 103 | |||
| 104 | /// Used to output a message on a debug hardware unit - does nothing on a retail unit | ||
| 105 | void OutputDebugString(const char* string) { | ||
| 106 | NOTICE_LOG(OSHLE, "## OSDEBUG: %s", string); | ||
| 107 | } | ||
| 108 | |||
| 94 | const HLE::FunctionDef Syscall_Table[] = { | 109 | const HLE::FunctionDef Syscall_Table[] = { |
| 95 | {0x00, NULL, "Unknown"}, | 110 | {0x00, NULL, "Unknown"}, |
| 96 | {0x01, WrapI_UUUUU<ControlMemory>, "ControlMemory"}, | 111 | {0x01, WrapI_UUUUU<ControlMemory>, "ControlMemory"}, |
| @@ -125,7 +140,7 @@ const HLE::FunctionDef Syscall_Table[] = { | |||
| 125 | {0x1E, NULL, "CreateMemoryBlock"}, | 140 | {0x1E, NULL, "CreateMemoryBlock"}, |
| 126 | {0x1F, WrapI_UUUU<MapMemoryBlock>, "MapMemoryBlock"}, | 141 | {0x1F, WrapI_UUUU<MapMemoryBlock>, "MapMemoryBlock"}, |
| 127 | {0x20, NULL, "UnmapMemoryBlock"}, | 142 | {0x20, NULL, "UnmapMemoryBlock"}, |
| 128 | {0x21, NULL, "CreateAddressArbiter"}, | 143 | {0x21, WrapI_V<CreateAddressArbiter>, "CreateAddressArbiter"}, |
| 129 | {0x22, NULL, "ArbitrateAddress"}, | 144 | {0x22, NULL, "ArbitrateAddress"}, |
| 130 | {0x23, WrapI_U<CloseHandle>, "CloseHandle"}, | 145 | {0x23, WrapI_U<CloseHandle>, "CloseHandle"}, |
| 131 | {0x24, WrapI_US64<WaitSynchronization1>, "WaitSynchronization1"}, | 146 | {0x24, WrapI_US64<WaitSynchronization1>, "WaitSynchronization1"}, |
| @@ -153,7 +168,7 @@ const HLE::FunctionDef Syscall_Table[] = { | |||
| 153 | {0x3A, NULL, "GetResourceLimitCurrentValues"}, | 168 | {0x3A, NULL, "GetResourceLimitCurrentValues"}, |
| 154 | {0x3B, NULL, "GetThreadContext"}, | 169 | {0x3B, NULL, "GetThreadContext"}, |
| 155 | {0x3C, NULL, "Break"}, | 170 | {0x3C, NULL, "Break"}, |
| 156 | {0x3D, NULL, "OutputDebugString"}, | 171 | {0x3D, WrapV_C<OutputDebugString>, "OutputDebugString"}, |
| 157 | {0x3E, NULL, "ControlPerformanceCounter"}, | 172 | {0x3E, NULL, "ControlPerformanceCounter"}, |
| 158 | {0x3F, NULL, "Unknown"}, | 173 | {0x3F, NULL, "Unknown"}, |
| 159 | {0x40, NULL, "Unknown"}, | 174 | {0x40, NULL, "Unknown"}, |