Browse Source
Merge pull request #8473 from DCNick3/implement-exit-process
Implement ExitProcess svc
pull/15/merge
liamwhite
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
src/core/hle/kernel/svc.cpp
|
|
|
@ -1726,11 +1726,12 @@ static ResultCode UnmapProcessCodeMemory(Core::System& system, Handle process_ha |
|
|
|
/// Exits the current process
|
|
|
|
static void ExitProcess(Core::System& system) { |
|
|
|
auto* current_process = system.Kernel().CurrentProcess(); |
|
|
|
UNIMPLEMENTED(); |
|
|
|
|
|
|
|
LOG_INFO(Kernel_SVC, "Process {} exiting", current_process->GetProcessID()); |
|
|
|
ASSERT_MSG(current_process->GetStatus() == ProcessStatus::Running, |
|
|
|
"Process has already exited"); |
|
|
|
|
|
|
|
system.Exit(); |
|
|
|
} |
|
|
|
|
|
|
|
static void ExitProcess32(Core::System& system) { |
|
|
|
|