mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-23 03:06:52 -04:00
kern: skeleton SvcReplyAndReceive
This commit is contained in:
parent
be98aaa185
commit
f4fd4cbbb2
6 changed files with 131 additions and 5 deletions
|
@ -21,6 +21,11 @@ namespace ams::kern::svc {
|
|||
|
||||
namespace {
|
||||
|
||||
void ExitProcess() {
|
||||
GetCurrentProcess().Exit();
|
||||
MESOSPHERE_PANIC("Process survived call to exit");
|
||||
}
|
||||
|
||||
Result GetProcessId(u64 *out_process_id, ams::svc::Handle handle) {
|
||||
/* Get the object from the handle table. */
|
||||
KScopedAutoObject obj = GetCurrentProcess().GetHandleTable().GetObject<KAutoObject>(handle);
|
||||
|
@ -54,7 +59,7 @@ namespace ams::kern::svc {
|
|||
/* ============================= 64 ABI ============================= */
|
||||
|
||||
void ExitProcess64() {
|
||||
MESOSPHERE_PANIC("Stubbed SvcExitProcess64 was called.");
|
||||
return ExitProcess();
|
||||
}
|
||||
|
||||
Result GetProcessId64(uint64_t *out_process_id, ams::svc::Handle process_handle) {
|
||||
|
@ -84,7 +89,7 @@ namespace ams::kern::svc {
|
|||
/* ============================= 64From32 ABI ============================= */
|
||||
|
||||
void ExitProcess64From32() {
|
||||
MESOSPHERE_PANIC("Stubbed SvcExitProcess64From32 was called.");
|
||||
return ExitProcess();
|
||||
}
|
||||
|
||||
Result GetProcessId64From32(uint64_t *out_process_id, ams::svc::Handle process_handle) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue