kernel: implement eventfs/eventfd

This commit is contained in:
Matheus
2026-06-18 01:53:59 -03:00
parent 9194741bd8
commit b74f36e984
6 changed files with 305 additions and 21 deletions
+3 -1
View File
@@ -105,6 +105,7 @@ extern syscall_getsockopt
extern syscall_clock_getres
extern syscall_setpriority
extern syscall_sysctl
extern syscall_eventfd
syscalltab:
dq syscall_print
dq syscall_mmap
@@ -212,7 +213,8 @@ dq syscall_getsockopt
dq syscall_clock_getres
dq syscall_setpriority
dq syscall_sysctl
syscallcount equ 106
dq syscall_eventfd
syscallcount equ 107
section .text
global arch_syscall_entry
; on entry:
+3 -1
View File
@@ -9,7 +9,7 @@
void arch_interrupt_disable();
void arch_interrupt_enable();
#define SYSCALL_COUNT 106
#define SYSCALL_COUNT 107
#define LOGSTR(x) arch_e9_puts(x)
static char *name[] = {
@@ -119,6 +119,7 @@ static char *name[] = {
"clock_getres",
"setpriority",
"sysctl",
"eventfd",
};
static char *args[] = {
@@ -228,6 +229,7 @@ static char *args[] = {
"clockid %d timespec %p", // clock_getres
"which %d who %d prio %d", // setpriority
"name %p name_len %lu oldp %p old_size %p newp %p new_size %lu", // sysctl
"initval %lu flags %x", //eventfd
};
#endif