MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / syscall_exit

Function syscall_exit

source/kernel/syscall.cpp:93–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91#define SYS_LOG1_NO_FMT if (syscallMask) sysLog1_nofmt
92
93static U32 syscall_exit(CPU* cpu, U32 eipCount) {
94 SYS_LOG1(SYSCALL_PROCESS, cpu, "exit: status=%d", ARG1);
95 U32 result = cpu->thread->process->exit(cpu->thread, ARG1);
96 SYS_LOG(SYSCALL_PROCESS, cpu, " result=%d(0x%X)\n", result, result);
97 return result;
98}
99
100static U32 syscall_read(CPU* cpu, U32 eipCount) {
101 SYS_LOG1(SYSCALL_READ, cpu, "read: fd=%d buf=0x%X len=%d", ARG1, ARG2, ARG3);

Callers

nothing calls this directly

Calls 1

exitMethod · 0.45

Tested by

no test coverage detected