Redesign syscalls
All checks were successful
Build documentation / build-and-deploy (push) Successful in 40s

This commit is contained in:
2026-01-20 20:46:34 +01:00
parent a29233f853
commit fff51321bc
15 changed files with 198 additions and 357 deletions

View File

@@ -1,19 +0,0 @@
#ifndef _M_RESOURCE_BUFFER_H
#define _M_RESOURCE_BUFFER_H
#include <stdint.h>
#include <stddef.h>
struct resource_buffer_mem {
uintptr_t paddr;
size_t pages;
};
struct resource_buffer {
int type;
union {
struct resource_buffer_mem mem;
} u;
};
#endif // _M_RESOURCE_BUFFER_H

View File

@@ -1,16 +1,13 @@
#ifndef _M_SYSCALL_DEFS_H
#define _M_SYSCALL_DEFS_H
#define SYS_PROC_QUIT 1
#define SYS_PROC_TEST 2
#define SYS_PROC_MAP 3
#define SYS_PROC_UNMAP 4
#define SYS_PROC_CREATE_RESOURCE 5
#define SYS_PROC_DROP_RESOURCE 6
#define SYS_PROC_MUTEX_LOCK 8
#define SYS_PROC_MUTEX_UNLOCK 9
#define SYS_PROC_CLONE 10
#define SYS_PROC_SCHED 11
#define SYS_PROC_TRANSLATE_V2P 12
#define SYS_QUIT 1
#define SYS_TEST 2
#define SYS_MAP 3
#define SYS_UNMAP 4
#define SYS_CLONE 5
#define SYS_SCHED 6
#define SYS_CREATE_MEM 7
#define SYS_UNLINK_MEM 8
#endif // _M_SYSCALL_DEFS_H