mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-30 14:08:21 +00:00
syscalls: sync
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user