syscalls: fchdir, setitimer, getitimer

This commit is contained in:
Matheus
2024-05-29 11:10:24 -03:00
parent 5b5d300fc1
commit 5f7791cd08
11 changed files with 313 additions and 13 deletions
+7 -1
View File
@@ -66,6 +66,9 @@ extern syscall_uname
extern syscall_hostname
extern syscall_sync
extern syscall_fsync
extern syscall_fchdir
extern syscall_getitimer
extern syscall_setitimer
syscalltab:
dq syscall_print
dq syscall_mmap
@@ -134,7 +137,10 @@ dq syscall_uname
dq syscall_hostname
dq syscall_sync
dq syscall_fsync
syscallcount equ 67
dq syscall_fchdir
dq syscall_setitimer
dq syscall_getitimer
syscallcount equ 70
section .text
global arch_syscall_entry
; on entry:
+9 -3
View File
@@ -5,7 +5,7 @@
#ifdef SYSCALL_LOGGING
#define SYSCALL_COUNT 67
#define SYSCALL_COUNT 68
#define LOGSTR(x) arch_e9_puts(x)
static char *name[] = {
@@ -75,7 +75,10 @@ static char *name[] = {
"uname",
"hostname",
"sync",
"fsync"
"fsync",
"fchdir",
"getitimer",
"setitimer"
};
static char *args[] = {
@@ -145,7 +148,10 @@ static char *args[] = {
"utsname %p", // uname
"new %p newsize %lu old %p oldsize %lu", // hostname
"N/A", // sync
"fd %d" // fsync
"fd %d", // fsync
"fd %d", // fchdir
"which %d new %p old %p\n", // setitimer
"which %d value %p\n", // getitimer
};
#endif