mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
syscalls: implement sysctl and add process listing
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user