summaryrefslogtreecommitdiff
path: root/src/init
diff options
context:
space:
mode:
authordzwdz2021-09-07 19:37:38 +0200
committerdzwdz2021-09-07 19:37:38 +0200
commit2f48f3c88c11c802a1dfc9d803b1d9715cb95b33 (patch)
tree8331e0002a9e896bf6ee849ad2528d73ac5f8a99 /src/init
parent844cd82f89e003a83d763402a6a20abc22252322 (diff)
reimplement _syscall_mount
Diffstat (limited to 'src/init')
-rw-r--r--src/init/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/init/main.c b/src/init/main.c
index deacb15..41f51d3 100644
--- a/src/init/main.c
+++ b/src/init/main.c
@@ -28,8 +28,10 @@ int main(void) {
}
void fs_test(void) {
- handle_t front, back;
+ handle_t front, back, file;
front = _syscall_fs_create((void*)&back); // TODO change user_ptr to void*
+ _syscall_mount(front, argify("/mnt"));
+ file = _syscall_open(argify("/mnt/test"));
}
void misc_tests(void) {