mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-02 07:39:49 -04:00
kern: add SvcExitThread, SvcSendAsyncRequestWithUserBuffer, SvcReplyAndReceiveWithUserBuffer
This commit is contained in:
parent
1b429918de
commit
d52655eaf1
3 changed files with 114 additions and 8 deletions
libraries/libmesosphere/source/svc
|
@ -81,6 +81,11 @@ namespace ams::kern::svc {
|
|||
return ResultSuccess();
|
||||
}
|
||||
|
||||
void ExitThread() {
|
||||
GetCurrentThread().Exit();
|
||||
MESOSPHERE_PANIC("Process survived call to exit");
|
||||
}
|
||||
|
||||
Result GetThreadPriority(int32_t *out_priority, ams::svc::Handle thread_handle) {
|
||||
/* Get the thread from its handle. */
|
||||
KScopedAutoObject thread = GetCurrentProcess().GetHandleTable().GetObject<KThread>(thread_handle);
|
||||
|
@ -114,7 +119,7 @@ namespace ams::kern::svc {
|
|||
}
|
||||
|
||||
void ExitThread64() {
|
||||
MESOSPHERE_PANIC("Stubbed SvcExitThread64 was called.");
|
||||
return ExitThread();
|
||||
}
|
||||
|
||||
void SleepThread64(int64_t ns) {
|
||||
|
@ -168,7 +173,7 @@ namespace ams::kern::svc {
|
|||
}
|
||||
|
||||
void ExitThread64From32() {
|
||||
MESOSPHERE_PANIC("Stubbed SvcExitThread64From32 was called.");
|
||||
return ExitThread();
|
||||
}
|
||||
|
||||
void SleepThread64From32(int64_t ns) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue