diff options
author | Marvin Borner | 2020-04-29 00:39:24 +0200 |
---|---|---|
committer | Marvin Borner | 2020-04-29 00:39:24 +0200 |
commit | 50858d043cbd6f61cc091c6772f981ca2d6cca6b (patch) | |
tree | 82afcc2daf9c4b67d29832923283654913490d06 /src/kernel/kernel.c | |
parent | 34c752f6fe4f71169172f1b3e46b1eddf69eba6e (diff) |
Added basic exec calls for init and started libc
Diffstat (limited to 'src/kernel/kernel.c')
-rw-r--r-- | src/kernel/kernel.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/kernel/kernel.c b/src/kernel/kernel.c index 90b967f..8056055 100644 --- a/src/kernel/kernel.c +++ b/src/kernel/kernel.c @@ -67,14 +67,8 @@ void kernel_main(uint32_t magic, uint32_t multiboot_address, uint32_t esp) printf("Content of /etc/test: %s", read_file("/etc/test")); syscalls_install(); - struct process *proc = elf_load("/bin/init"); - if (proc) { - proc->stdin = NULL; - proc->stdout = NULL; - proc->stderr = NULL; - process_init(proc); - } + kexec("/bin/init"); halt_loop(); // asm ("div %0" :: "r"(0)); // Exception testing x/0 -}
\ No newline at end of file +} |