From 50858d043cbd6f61cc091c6772f981ca2d6cca6b Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 29 Apr 2020 00:39:24 +0200 Subject: Added basic exec calls for init and started libc --- src/kernel/fs/elf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/fs/elf.c') diff --git a/src/kernel/fs/elf.c b/src/kernel/fs/elf.c index 9ca98f0..a4c78ba 100644 --- a/src/kernel/fs/elf.c +++ b/src/kernel/fs/elf.c @@ -40,7 +40,7 @@ struct process *elf_load(char *path) } struct process *proc = process_make_new(); - proc->name = "ROOT"; + proc->name = path; proc->registers.eip = header->entry; paging_switch_directory(proc->cr3); @@ -71,4 +71,4 @@ struct process *elf_load(char *path) paging_switch_directory(paging_root_directory); return proc; -} \ No newline at end of file +} -- cgit v1.2.3