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
cfea5fdd
There was an error fetching the commit references. Please try again later.
Commit
cfea5fdd
authored
10 years ago
by
bunnei
Browse files
Options
Downloads
Patches
Plain Diff
cleanups to SVC CreateThread
parent
3fac6dc3
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/syscall.cpp
+15
-8
15 additions, 8 deletions
src/core/hle/syscall.cpp
with
15 additions
and
8 deletions
src/core/hle/syscall.cpp
+
15
−
8
View file @
cfea5fdd
...
@@ -6,6 +6,9 @@
...
@@ -6,6 +6,9 @@
#include
"core/mem_map.h"
#include
"core/mem_map.h"
#include
"core/hle/kernel/kernel.h"
#include
"core/hle/kernel/thread.h"
#include
"core/hle/function_wrappers.h"
#include
"core/hle/function_wrappers.h"
#include
"core/hle/syscall.h"
#include
"core/hle/syscall.h"
#include
"core/hle/service/service.h"
#include
"core/hle/service/service.h"
...
@@ -140,19 +143,23 @@ Result GetResourceLimitCurrentValues(void* _values, Handle resource_limit, void*
...
@@ -140,19 +143,23 @@ Result GetResourceLimitCurrentValues(void* _values, Handle resource_limit, void*
return
0
;
return
0
;
}
}
Result
CreateThread
(
void
*
thread
,
u32
thread_priority
,
u32
entry_point
,
u32
arg
,
u32
stack_top
,
u32
processor_id
)
{
Result
CreateThread
(
void
*
thread
,
u32
priority
,
u32
entry_point
,
u32
arg
,
u32
stack_top
,
std
::
string
thread_name
;
u32
processor_id
)
{
std
::
string
name
;
if
(
Symbols
::
HasSymbol
(
entry_point
))
{
if
(
Symbols
::
HasSymbol
(
entry_point
))
{
TSymbol
symbol
=
Symbols
::
GetSymbol
(
entry_point
);
TSymbol
symbol
=
Symbols
::
GetSymbol
(
entry_point
);
thread_
name
=
symbol
.
name
;
name
=
symbol
.
name
;
}
else
{
}
else
{
char
buff
[
100
];
char
buff
[
100
];
sprintf
(
buff
,
"%s"
,
"unk-%08X"
,
entry_point
);
sprintf
(
buff
,
"%s"
,
"unk
nown
-%08X"
,
entry_point
);
thread_
name
=
buff
;
name
=
buff
;
}
}
DEBUG_LOG
(
SVC
,
"(UNIMPLEMENTED) CreateThread called entrypoint=0x%08X (%s), arg=0x%08X, "
DEBUG_LOG
(
SVC
,
"CreateThread called entrypoint=0x%08X (%s), arg=0x%08X, stacktop=0x%08X, "
"stacktop=0x%08X, threadpriority=0x%08X, processorid=0x%08X"
,
entry_point
,
"threadpriority=0x%08X, processorid=0x%08X"
,
entry_point
,
name
.
c_str
(),
arg
,
stack_top
,
thread_name
.
c_str
(),
arg
,
stack_top
,
thread_priority
,
processor_id
);
priority
,
processor_id
);
Handle
handle
=
__KernelCreateThread
(
name
.
c_str
(),
entry_point
,
priority
,
processor_id
,
stack_top
);
return
0
;
return
0
;
}
}
...
...
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