mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
kernel: implement eventfs/eventfd
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user