summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2014-05-20 22:57:54 -0400
committerGravatar bunnei2014-05-20 22:57:54 -0400
commit08e6a9bf896b386a339fccc65066ee51c8592b9c (patch)
tree0ce5d6b49aa693c812e9ee27fffac034c53d5ee6
parentkernel: fixed include, in general include "common.h" not "common_types.h" (diff)
downloadyuzu-08e6a9bf896b386a339fccc65066ee51c8592b9c.tar.gz
yuzu-08e6a9bf896b386a339fccc65066ee51c8592b9c.tar.xz
yuzu-08e6a9bf896b386a339fccc65066ee51c8592b9c.zip
svc: added some comments
-rw-r--r--src/core/hle/svc.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp
index 6f0f099c6..3674a08c5 100644
--- a/src/core/hle/svc.cpp
+++ b/src/core/hle/svc.cpp
@@ -10,6 +10,7 @@
10#include "core/mem_map.h" 10#include "core/mem_map.h"
11 11
12#include "core/hle/kernel/kernel.h" 12#include "core/hle/kernel/kernel.h"
13#include "core/hle/kernel/mutex.h"
13#include "core/hle/kernel/thread.h" 14#include "core/hle/kernel/thread.h"
14 15
15#include "core/hle/function_wrappers.h" 16#include "core/hle/function_wrappers.h"
@@ -160,6 +161,7 @@ Result GetResourceLimitCurrentValues(void* _values, Handle resource_limit, void*
160 return 0; 161 return 0;
161} 162}
162 163
164/// Creates a new thread
163Result CreateThread(void* thread, u32 priority, u32 entry_point, u32 arg, u32 stack_top, 165Result CreateThread(void* thread, u32 priority, u32 entry_point, u32 arg, u32 stack_top,
164 u32 processor_id) { 166 u32 processor_id) {
165 std::string name; 167 std::string name;
@@ -182,6 +184,7 @@ Result CreateThread(void* thread, u32 priority, u32 entry_point, u32 arg, u32 st
182 return 0; 184 return 0;
183} 185}
184 186
187/// Create a mutex
185Result CreateMutex(void* _mutex, u32 initial_locked) { 188Result CreateMutex(void* _mutex, u32 initial_locked) {
186 Handle* mutex = (Handle*)_mutex; 189 Handle* mutex = (Handle*)_mutex;
187 DEBUG_LOG(SVC, "(UNIMPLEMENTED) CreateMutex called initial_locked=%s", 190 DEBUG_LOG(SVC, "(UNIMPLEMENTED) CreateMutex called initial_locked=%s",
@@ -190,16 +193,19 @@ Result CreateMutex(void* _mutex, u32 initial_locked) {
190 return 0; 193 return 0;
191} 194}
192 195
196/// Release a mutex
193Result ReleaseMutex(Handle handle) { 197Result ReleaseMutex(Handle handle) {
194 DEBUG_LOG(SVC, "(UNIMPLEMENTED) ReleaseMutex called handle=0x%08X", handle); 198 DEBUG_LOG(SVC, "(UNIMPLEMENTED) ReleaseMutex called handle=0x%08X", handle);
195 return 0; 199 return 0;
196} 200}
197 201
202/// Get current thread ID
198Result GetThreadId(void* thread_id, u32 thread) { 203Result GetThreadId(void* thread_id, u32 thread) {
199 DEBUG_LOG(SVC, "(UNIMPLEMENTED) GetThreadId called thread=0x%08X", thread); 204 DEBUG_LOG(SVC, "(UNIMPLEMENTED) GetThreadId called thread=0x%08X", thread);
200 return 0; 205 return 0;
201} 206}
202 207
208/// Query memory
203Result QueryMemory(void *_info, void *_out, u32 addr) { 209Result QueryMemory(void *_info, void *_out, u32 addr) {
204 MemoryInfo* info = (MemoryInfo*) _info; 210 MemoryInfo* info = (MemoryInfo*) _info;
205 PageInfo* out = (PageInfo*) _out; 211 PageInfo* out = (PageInfo*) _out;
@@ -207,6 +213,7 @@ Result QueryMemory(void *_info, void *_out, u32 addr) {
207 return 0; 213 return 0;
208} 214}
209 215
216/// Create an event
210Result CreateEvent(void* _event, u32 reset_type) { 217Result CreateEvent(void* _event, u32 reset_type) {
211 Handle* event = (Handle*)_event; 218 Handle* event = (Handle*)_event;
212 DEBUG_LOG(SVC, "(UNIMPLEMENTED) CreateEvent called reset_type=0x%08X", reset_type); 219 DEBUG_LOG(SVC, "(UNIMPLEMENTED) CreateEvent called reset_type=0x%08X", reset_type);