aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/fs/elf.c
diff options
context:
space:
mode:
authorMarvin Borner2020-05-26 18:14:14 +0200
committerMarvin Borner2020-05-26 18:14:14 +0200
commit0977f984ca61c6cce96705ab923bdf93dc3ce5a3 (patch)
tree1d69d41996b383a15d897a68e140147adeebcd8b /src/kernel/fs/elf.c
parentb70116dc7c57132c109955c4b174ff2417afda68 (diff)
Reduced some magic numbers
Diffstat (limited to 'src/kernel/fs/elf.c')
-rw-r--r--src/kernel/fs/elf.c5
1 files changed, 0 insertions, 5 deletions
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);