kernel: refactor syscall dispatch system

This commit is contained in:
2026-02-08 16:17:11 +00:00
parent c424e8127e
commit 9f7b7bdd2d
6 changed files with 30 additions and 23 deletions

13
syscall/task.c Normal file
View File

@@ -0,0 +1,13 @@
#include <mango/machine/cpu.h>
#include <mango/printk.h>
#include <mango/sched.h>
extern kern_status_t sys_exit(int status)
{
printk("sys_exit(%d)", status);
while (1) {
ml_cpu_pause();
}
return KERN_UNIMPLEMENTED;
}