Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
08e6a9bf
There was an error fetching the commit references. Please try again later.
Commit
08e6a9bf
authored
10 years ago
by
bunnei
Browse files
Options
Downloads
Patches
Plain Diff
svc: added some comments
parent
1c5802c3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/core/hle/svc.cpp
+7
-0
7 additions, 0 deletions
src/core/hle/svc.cpp
with
7 additions
and
0 deletions
src/core/hle/svc.cpp
+
7
−
0
View file @
08e6a9bf
...
@@ -10,6 +10,7 @@
...
@@ -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*
...
@@ -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
...
@@ -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) {
...
@@ -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) {
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment