From 0977f984ca61c6cce96705ab923bdf93dc3ce5a3 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 26 May 2020 18:14:14 +0200 Subject: Reduced some magic numbers --- src/kernel/fs/elf.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/kernel/fs/elf.c') diff --git a/src/kernel/fs/elf.c b/src/kernel/fs/elf.c index 27857a9..2dddc0e 100644 --- a/src/kernel/fs/elf.c +++ b/src/kernel/fs/elf.c @@ -48,16 +48,11 @@ struct process *elf_load(char *path) debug("File is valid: %s", path); } - // TODO: Fix here - halt_loop(); struct process *proc = process_make_new(); strcpy(proc->name, path); proc->registers.eip = header->entry; paging_switch_directory(proc->cr3); - if (!memory_init()) - paging_set_present(0, memory_get_all() >> 3); - u32 stk = (u32)valloc(PAGE_SIZE); proc->registers.useresp = 0x40000000 - (PAGE_SIZE / 2); -- cgit v1.2.3