syscalls: readv writev

This commit is contained in:
Matheus
2025-11-04 02:04:11 -03:00
parent 2bafdee791
commit 5d79c7840d
5 changed files with 169 additions and 7 deletions
+5 -1
View File
@@ -96,6 +96,8 @@ extern syscall_nice
extern syscall_flock
extern syscall_getcpu
extern syscall_sysinfo
extern syscall_writev
extern syscall_readv
syscalltab:
dq syscall_print
dq syscall_mmap
@@ -194,7 +196,9 @@ dq syscall_nice
dq syscall_flock
dq syscall_getcpu
dq syscall_sysinfo
syscallcount equ 97
dq syscall_writev
dq syscall_readv
syscallcount equ 99
section .text
global arch_syscall_entry
; on entry:
+6 -2
View File
@@ -5,7 +5,7 @@
#ifdef SYSCALL_LOGGING
#define SYSCALL_COUNT 97
#define SYSCALL_COUNT 99
#define LOGSTR(x) arch_e9_puts(x)
static char *name[] = {
@@ -105,7 +105,9 @@ static char *name[] = {
"nice",
"flock",
"getcpu",
"sysinfo"
"sysinfo",
"writev",
"readv"
};
static char *args[] = {
@@ -206,6 +208,8 @@ static char *args[] = {
"fd %d op %d", // flock
"N/A", // getcpu
"ptr %p", // sysinfo
"fd %d iov %p iovcnt %d", // writev
"fd %d iov %p iovcnt %d", // readv
};
#endif