diff options
author | Marvin Borner | 2020-04-26 23:23:42 +0200 |
---|---|---|
committer | Marvin Borner | 2020-04-26 23:23:42 +0200 |
commit | f30c9803f05e90087e367953aa142275f8688f61 (patch) | |
tree | bea9166fad90c42ad4551094a5e6eec9098a7f19 /src/kernel/kernel.c | |
parent | 31f671f2137bc09e62de09142bea232c1975c76b (diff) |
Awesome new multitasking system and scheduler
Diffstat (limited to 'src/kernel/kernel.c')
-rw-r--r-- | src/kernel/kernel.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/kernel/kernel.c b/src/kernel/kernel.c index 756721f..83e0b35 100644 --- a/src/kernel/kernel.c +++ b/src/kernel/kernel.c @@ -62,14 +62,12 @@ void kernel_main(uint32_t magic, uint32_t multiboot_address) load_binaries(); set_optimal_resolution(); - printf("Awesome!\n"); syscalls_install(); - elf_load("/bin/user"); + struct process *proc = elf_load("/bin/user"); + process_init(proc); -#ifdef INSTALL_MELVIX - panic("Installation isn't supported right now!"); -#endif + halt_loop(); // asm ("div %0" :: "r"(0)); // Exception testing x/0 -} +}
\ No newline at end of file |