mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 21:58:20 +00:00
kernel: poll system and poll syscall
This commit is contained in:
@@ -33,6 +33,7 @@ extern syscall_readlinkat
|
||||
extern syscall_fchmod
|
||||
extern syscall_fchmodat
|
||||
extern syscall_umask
|
||||
extern syscall_poll
|
||||
syscalltab:
|
||||
dq syscall_print
|
||||
dq syscall_mmap
|
||||
@@ -68,7 +69,8 @@ dq syscall_readlinkat
|
||||
dq syscall_fchmod
|
||||
dq syscall_fchmodat
|
||||
dq syscall_umask
|
||||
syscallcount equ 34
|
||||
dq syscall_poll
|
||||
syscallcount equ 35
|
||||
section .text
|
||||
global arch_syscall_entry
|
||||
; on entry:
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#ifdef SYSCALL_LOGGING
|
||||
|
||||
#define SYSCALL_COUNT 34
|
||||
#define SYSCALL_COUNT 35
|
||||
#define LOGSTR(x) arch_e9_puts(x)
|
||||
|
||||
static char *name[] = {
|
||||
@@ -41,7 +41,8 @@ static char *name[] = {
|
||||
"readlinkat",
|
||||
"fchmod",
|
||||
"fchmodat",
|
||||
"umask"
|
||||
"umask",
|
||||
"poll"
|
||||
};
|
||||
|
||||
static char *args[] = {
|
||||
@@ -78,7 +79,8 @@ static char *args[] = {
|
||||
"dirfd %d path %s buffer %p buffer length %lu", // readlinkat
|
||||
"fd %d mode %o", // fchmod
|
||||
"dirfd %d path %s mode %o flags %d", // fchmodat
|
||||
"mode %o" // umask
|
||||
"mode %o", // umask
|
||||
"fds %p nfds %d timeout %d" // poll
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user