syscalls: implement sysctl and add process listing

This commit is contained in:
Matheus
2026-06-09 17:47:27 -03:00
parent 770a300618
commit 659b29ef4e
18 changed files with 428 additions and 8 deletions
+3 -1
View File
@@ -104,6 +104,7 @@ extern syscall_fstatvfsat
extern syscall_getsockopt
extern syscall_clock_getres
extern syscall_setpriority
extern syscall_sysctl
syscalltab:
dq syscall_print
dq syscall_mmap
@@ -210,7 +211,8 @@ dq syscall_fstatvfsat
dq syscall_getsockopt
dq syscall_clock_getres
dq syscall_setpriority
syscallcount equ 105
dq syscall_sysctl
syscallcount equ 106
section .text
global arch_syscall_entry
; on entry:
+3 -1
View File
@@ -9,7 +9,7 @@
void arch_interrupt_disable();
void arch_interrupt_enable();
#define SYSCALL_COUNT 105
#define SYSCALL_COUNT 106
#define LOGSTR(x) arch_e9_puts(x)
static char *name[] = {
@@ -118,6 +118,7 @@ static char *name[] = {
"getsockopt",
"clock_getres",
"setpriority",
"sysctl",
};
static char *args[] = {
@@ -226,6 +227,7 @@ static char *args[] = {
"fd %d level %d optname %d optval %p optlen %p", // getsockopt
"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
};
#endif