kernel: poll system and poll syscall

This commit is contained in:
Matheus
2023-07-08 22:02:36 -03:00
parent 0ed524f456
commit e938d0332e
11 changed files with 287 additions and 22 deletions
+3 -1
View File
@@ -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:
+5 -3
View File
@@ -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