From bfe16de4be67565f1a1e7b1331fcbe3aedf9c54e Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 28 Apr 2020 19:15:47 +0200 Subject: Userspace rewrite -> IT WORKS! :) Finally, after many months of work and rewrites the syscalls with constant char pointers work now :D --- src/kernel/kernel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/kernel.c') diff --git a/src/kernel/kernel.c b/src/kernel/kernel.c index 3461913..1b34a73 100644 --- a/src/kernel/kernel.c +++ b/src/kernel/kernel.c @@ -68,7 +68,7 @@ void kernel_main(uint32_t magic, uint32_t multiboot_address, uint32_t esp) printf("%s", read_file("/etc/test")); syscalls_install(); - struct process *proc = elf_load("/bin/user"); + struct process *proc = elf_load("/bin/sh"); if (proc) { proc->stdin = NULL; proc->stdout = NULL; @@ -79,4 +79,4 @@ void kernel_main(uint32_t magic, uint32_t multiboot_address, uint32_t esp) log("Okidoko!"); halt_loop(); // asm ("div %0" :: "r"(0)); // Exception testing x/0 -} \ No newline at end of file +} -- cgit v1.2.3