syscalls: sync

This commit is contained in:
Matheus
2024-05-24 22:01:11 -03:00
parent c10014a874
commit 642e245522
6 changed files with 64 additions and 14 deletions
+1
View File
@@ -48,6 +48,7 @@ isr_%+ i:
cld
extern interrupt_isr
call interrupt_isr
cli
; pop context
add rsp, 24 ; cr2 gs and fs are not popped.
+3 -1
View File
@@ -64,6 +64,7 @@ extern syscall_kill
extern syscall_sigreturn
extern syscall_uname
extern syscall_hostname
extern syscall_sync
syscalltab:
dq syscall_print
dq syscall_mmap
@@ -130,7 +131,8 @@ dq syscall_kill
dq syscall_sigreturn
dq syscall_uname
dq syscall_hostname
syscallcount equ 65
dq syscall_sync
syscallcount equ 66
section .text
global arch_syscall_entry
; on entry:
+5 -3
View File
@@ -4,7 +4,7 @@
#ifdef SYSCALL_LOGGING
#define SYSCALL_COUNT 65
#define SYSCALL_COUNT 66
#define LOGSTR(x) arch_e9_puts(x)
static char *name[] = {
@@ -72,7 +72,8 @@ static char *name[] = {
"kill",
"sigreturn",
"uname",
"hostname"
"hostname",
"sync"
};
static char *args[] = {
@@ -140,7 +141,8 @@ static char *args[] = {
"pid %d signal %d", // kill
"N/A", // sigreturn
"utsname %p", // uname
"new %p newsize %lu old %p oldsize %lu" // hostname
"new %p newsize %lu old %p oldsize %lu", // hostname
"N/A" // sync
};
#endif