syscalls: sysinfo

This commit is contained in:
Matheus
2025-11-02 21:30:24 -03:00
parent d53d97d951
commit c9d401f488
7 changed files with 77 additions and 4 deletions
+3 -1
View File
@@ -95,6 +95,7 @@ extern syscall_shutdown
extern syscall_nice
extern syscall_flock
extern syscall_getcpu
extern syscall_sysinfo
syscalltab:
dq syscall_print
dq syscall_mmap
@@ -192,7 +193,8 @@ dq syscall_shutdown
dq syscall_nice
dq syscall_flock
dq syscall_getcpu
syscallcount equ 96
dq syscall_sysinfo
syscallcount equ 97
section .text
global arch_syscall_entry
; on entry:
+5 -3
View File
@@ -5,7 +5,7 @@
#ifdef SYSCALL_LOGGING
#define SYSCALL_COUNT 96
#define SYSCALL_COUNT 97
#define LOGSTR(x) arch_e9_puts(x)
static char *name[] = {
@@ -104,7 +104,8 @@ static char *name[] = {
"shutdown",
"nice",
"flock",
"getcpu"
"getcpu",
"sysinfo"
};
static char *args[] = {
@@ -203,7 +204,8 @@ static char *args[] = {
"how %d", // shutdown
"off %d", // nice
"fd %d op %d", // flock
"N/A" // getcpu
"N/A", // getcpu
"ptr %p", // sysinfo
};
#endif