1
0
Fork 0
forked from suyu/suyu

svc: added some comments

This commit is contained in:
bunnei 2014-05-20 22:57:54 -04:00
parent 1c5802c35a
commit 08e6a9bf89

View file

@ -10,6 +10,7 @@
#include "core/mem_map.h" #include "core/mem_map.h"
#include "core/hle/kernel/kernel.h" #include "core/hle/kernel/kernel.h"
#include "core/hle/kernel/mutex.h"
#include "core/hle/kernel/thread.h" #include "core/hle/kernel/thread.h"
#include "core/hle/function_wrappers.h" #include "core/hle/function_wrappers.h"
@ -160,6 +161,7 @@ Result GetResourceLimitCurrentValues(void* _values, Handle resource_limit, void*
return 0; return 0;
} }
/// Creates a new thread
Result CreateThread(void* thread, u32 priority, u32 entry_point, u32 arg, u32 stack_top, Result CreateThread(void* thread, u32 priority, u32 entry_point, u32 arg, u32 stack_top,
u32 processor_id) { u32 processor_id) {
std::string name; std::string name;
@ -182,6 +184,7 @@ Result CreateThread(void* thread, u32 priority, u32 entry_point, u32 arg, u32 st
return 0; return 0;
} }
/// Create a mutex
Result CreateMutex(void* _mutex, u32 initial_locked) { Result CreateMutex(void* _mutex, u32 initial_locked) {
Handle* mutex = (Handle*)_mutex; Handle* mutex = (Handle*)_mutex;
DEBUG_LOG(SVC, "(UNIMPLEMENTED) CreateMutex called initial_locked=%s", DEBUG_LOG(SVC, "(UNIMPLEMENTED) CreateMutex called initial_locked=%s",
@ -190,16 +193,19 @@ Result CreateMutex(void* _mutex, u32 initial_locked) {
return 0; return 0;
} }
/// Release a mutex
Result ReleaseMutex(Handle handle) { Result ReleaseMutex(Handle handle) {
DEBUG_LOG(SVC, "(UNIMPLEMENTED) ReleaseMutex called handle=0x%08X", handle); DEBUG_LOG(SVC, "(UNIMPLEMENTED) ReleaseMutex called handle=0x%08X", handle);
return 0; return 0;
} }
/// Get current thread ID
Result GetThreadId(void* thread_id, u32 thread) { Result GetThreadId(void* thread_id, u32 thread) {
DEBUG_LOG(SVC, "(UNIMPLEMENTED) GetThreadId called thread=0x%08X", thread); DEBUG_LOG(SVC, "(UNIMPLEMENTED) GetThreadId called thread=0x%08X", thread);
return 0; return 0;
} }
/// Query memory
Result QueryMemory(void *_info, void *_out, u32 addr) { Result QueryMemory(void *_info, void *_out, u32 addr) {
MemoryInfo* info = (MemoryInfo*) _info; MemoryInfo* info = (MemoryInfo*) _info;
PageInfo* out = (PageInfo*) _out; PageInfo* out = (PageInfo*) _out;
@ -207,6 +213,7 @@ Result QueryMemory(void *_info, void *_out, u32 addr) {
return 0; return 0;
} }
/// Create an event
Result CreateEvent(void* _event, u32 reset_type) { Result CreateEvent(void* _event, u32 reset_type) {
Handle* event = (Handle*)_event; Handle* event = (Handle*)_event;
DEBUG_LOG(SVC, "(UNIMPLEMENTED) CreateEvent called reset_type=0x%08X", reset_type); DEBUG_LOG(SVC, "(UNIMPLEMENTED) CreateEvent called reset_type=0x%08X", reset_type);