summaryrefslogtreecommitdiff
path: root/src/init/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/init/main.c')
-rw-r--r--src/init/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/init/main.c b/src/init/main.c
index 939f15f..deacb15 100644
--- a/src/init/main.c
+++ b/src/init/main.c
@@ -9,6 +9,7 @@ __attribute__((section("text")))
int tty_fd;
void misc_tests(void);
+void fs_test(void);
// takes a cstring and copies it right before a page boundary
const char *multipageify(const char *str);
@@ -21,10 +22,16 @@ int main(void) {
log(" opened /tty ");
misc_tests();
+ fs_test();
_syscall_exit(argify("my job here is done."));
}
+void fs_test(void) {
+ handle_t front, back;
+ front = _syscall_fs_create((void*)&back); // TODO change user_ptr to void*
+}
+
void misc_tests(void) {
int res;
res = _syscall_open(argify("/tty/nonexistant"));