kernel: add a temporary syscall dispatch system

This commit is contained in:
2026-02-08 13:12:24 +00:00
parent 5d28955dc6
commit 1c74291b99
5 changed files with 67 additions and 1 deletions

20
include/mango/syscall.h Normal file
View File

@@ -0,0 +1,20 @@
#ifndef MANGO_SYSCALL_H_
#define MANGO_SYSCALL_H_
#include <mango/handle.h>
#include <mango/status.h>
#include <mango/vm.h>
#define SYS_EXIT 1
#define SYS_VM_OBJECT_CREATE 2
extern kern_status_t sys_exit(int status);
extern kern_status_t sys_vm_object_create(
const char *name,
size_t len,
enum vm_prot prot,
kern_handle_t *out_handle);
extern virt_addr_t syscall_get_func(unsigned int sysid);
#endif