| 123 | typedef long(*syscall_t)(regs64_t*); |
| 124 | |
| 125 | long SysExit(regs64_t* r){ |
| 126 | int64_t code = SC_ARG0(r); |
| 127 | |
| 128 | Log::Info("Process %s (PID: %d) exiting with code %d", Scheduler::GetCurrentProcess()->name, Scheduler::GetCurrentProcess()->pid, code); |
| 129 | |
| 130 | Scheduler::EndProcess(Scheduler::GetCurrentProcess()); |
| 131 | return 0; |
| 132 | } |
| 133 | |
| 134 | long SysExec(regs64_t* r){ |
| 135 | process_t* currentProcess = Scheduler::GetCurrentProcess(); |
nothing calls this directly
no test coverage detected