mount syscall and simple mount program

This commit is contained in:
Matheus
2023-07-26 00:19:51 -03:00
parent 755fd1a8d1
commit dcaa20ae9c
10 changed files with 199 additions and 12 deletions
+3 -1
View File
@@ -36,6 +36,7 @@ extern syscall_umask
extern syscall_poll
extern syscall_nanosleep
extern syscall_ftruncate
extern syscall_mount
syscalltab:
dq syscall_print
dq syscall_mmap
@@ -74,7 +75,8 @@ dq syscall_umask
dq syscall_poll
dq syscall_nanosleep
dq syscall_ftruncate
syscallcount equ 37
dq syscall_mount
syscallcount equ 38
section .text
global arch_syscall_entry
; on entry:
+5 -3
View File
@@ -4,7 +4,7 @@
#ifdef SYSCALL_LOGGING
#define SYSCALL_COUNT 35
#define SYSCALL_COUNT 38
#define LOGSTR(x) arch_e9_puts(x)
static char *name[] = {
@@ -44,7 +44,8 @@ static char *name[] = {
"umask",
"poll",
"nanosleep",
"ftruncate"
"ftruncate",
"mount"
};
static char *args[] = {
@@ -84,7 +85,8 @@ static char *args[] = {
"mode %o", // umask
"fds %p nfds %d timeout %d", // poll
"time %p remaining %p", // nanosleep
"fd %d size %lu" // ftruncate
"fd %d size %lu", // ftruncate
"backing %s mountpoint %s fs %s flags %d data %p" // mount
};
#endif