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 ++-- src/kernel/syscall/syscall.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/kernel') 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 +} diff --git a/src/kernel/syscall/syscall.c b/src/kernel/syscall/syscall.c index 1454198..f883f2e 100644 --- a/src/kernel/syscall/syscall.c +++ b/src/kernel/syscall/syscall.c @@ -35,4 +35,4 @@ void syscall_handler(struct regs *r) void syscalls_install() { isr_install_handler(0x80, syscall_handler); -} \ No newline at end of file +} -- cgit v1.2.3