diff options
Diffstat (limited to 'src/init')
-rw-r--r-- | src/init/main.c | 6 | ||||
-rw-r--r-- | src/init/syscalls.c | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/init/main.c b/src/init/main.c index 5df6bb3..795e2ac 100644 --- a/src/init/main.c +++ b/src/init/main.c @@ -32,10 +32,8 @@ int main(void) { } void fs_prep(void) { - handle_t front; - front = _syscall_fs_create(); - - if (!_syscall_fork()) { + handle_t front = _syscall_fs_fork2(); + if (!front) { tar_driver(&_initrd); _syscall_exit(1); } diff --git a/src/init/syscalls.c b/src/init/syscalls.c index e14dfe8..b535cae 100644 --- a/src/init/syscalls.c +++ b/src/init/syscalls.c @@ -34,8 +34,8 @@ int _syscall_close(handle_t handle) { return _syscall(_SYSCALL_CLOSE, handle, 0, 0, 0); } -handle_t _syscall_fs_create(void) { - return _syscall(_SYSCALL_FS_CREATE, 0, 0, 0, 0); +handle_t _syscall_fs_fork2(void) { + return _syscall(_SYSCALL_FS_FORK2, 0, 0, 0, 0); } int _syscall_fs_wait(char __user *buf, int max_len, struct fs_wait_response __user *res) { |