aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/fs/elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/fs/elf.c')
-rw-r--r--src/kernel/fs/elf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/kernel/fs/elf.c b/src/kernel/fs/elf.c
index ba9251a..3279784 100644
--- a/src/kernel/fs/elf.c
+++ b/src/kernel/fs/elf.c
@@ -51,8 +51,11 @@ struct process *elf_load(char *path)
strcpy(proc->name, path);
proc->registers.eip = header->entry;
+ log("1");
paging_switch_directory(proc->cr3);
+ log("2");
u32 stk = (u32)malloc(PAGE_SIZE);
+ log("3");
proc->registers.useresp = 0x40000000 - (PAGE_SIZE / 2);
proc->registers.ebp = proc->registers.useresp;
proc->registers.esp = proc->registers.useresp;
@@ -79,4 +82,4 @@ struct process *elf_load(char *path)
paging_switch_directory(prev_dir);
return proc;
-}
+} \ No newline at end of file