summaryrefslogtreecommitdiff
path: root/src/init
diff options
context:
space:
mode:
authordzwdz2021-08-25 11:13:36 +0200
committerdzwdz2021-08-25 11:13:36 +0200
commitdf3c01060a5dbeeb3b2ca75e371fa3c480a09f86 (patch)
tree84b2b3525a94aadd7e00f643afe21446ec8fcc38 /src/init
parentb988b821372466ed58eb1d2116bcbb158f70346c (diff)
change the signature of _syscall_fd_mount
Diffstat (limited to 'src/init')
-rw-r--r--src/init/main.c8
-rw-r--r--src/init/syscalls.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/init/main.c b/src/init/main.c
index 4f99c8b..b0e31ae 100644
--- a/src/init/main.c
+++ b/src/init/main.c
@@ -15,12 +15,12 @@ const char *multipageify(const char *str) {
return out;
}
-#define mount(path) _syscall_mount(path, sizeof(path)-1, 0)
+#define mount(fd, path) _syscall_fd_mount(fd, path, sizeof(path)-1)
int main(void) {
- mount("/");
- mount("/some/where");
- mount("/some");
+ mount(0, "/");
+ mount(0, "/some/where");
+ mount(0, "/some");
_syscall_fs_open(
multipageify("/some/where/file"),
diff --git a/src/init/syscalls.c b/src/init/syscalls.c
index 8c747e4..7963da2 100644
--- a/src/init/syscalls.c
+++ b/src/init/syscalls.c
@@ -21,8 +21,8 @@ fd_t _syscall_fs_open(const user_ptr path, int len) {
return _syscall(_SYSCALL_FS_OPEN, (int)path, len, 0);
}
-int _syscall_mount(const user_ptr path, int len, fd_t fd) {
- return _syscall(_SYSCALL_MOUNT, (int)path, len, fd);
+int _syscall_fd_mount(fd_t fd, const user_ptr path, int len) {
+ return _syscall(_SYSCALL_FD_MOUNT, fd, (int)path, len);
}
int _syscall_fd_read(fd_t fd, user_ptr buf, int len) {