aboutsummaryrefslogtreecommitdiff
path: root/src/features/proc.c
diff options
context:
space:
mode:
authorMarvin Borner2020-08-05 18:28:26 +0200
committerMarvin Borner2020-08-05 18:28:26 +0200
commit4af62bb53676b7f721b46cabee78cac3a557e924 (patch)
treeb9c7e615c3226d9822c22cdb6cdb326f379db73f /src/features/proc.c
parentb7f59b28b380d55f9e7abd8e450f1f9c7f050221 (diff)
Some proc things
Diffstat (limited to 'src/features/proc.c')
-rw-r--r--src/features/proc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/features/proc.c b/src/features/proc.c
index fbf1b5a..7acbf03 100644
--- a/src/features/proc.c
+++ b/src/features/proc.c
@@ -70,8 +70,9 @@ struct proc *proc_make()
void proc_init()
{
+ __asm__ volatile("cli");
current = root = proc_make();
- bin_load("/root", root);
+ bin_load("/init", root);
irq_install_handler(0, scheduler);
proc_print();
@@ -80,5 +81,6 @@ void proc_init()
*(void **)(&entry) = (u32 *)root->regs.eip;
__asm__ volatile("movl %%eax, %%ebp" ::"a"(root->regs.ebp));
__asm__ volatile("movl %%eax, %%esp" ::"a"(root->regs.esp));
+ __asm__ volatile("sti");
entry();
}