aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/tasks/userspace.c
diff options
context:
space:
mode:
authorMarvin Borner2020-05-09 22:30:46 +0200
committerMarvin Borner2020-05-09 22:30:46 +0200
commite350804dc78ab01aaca6aba33792a652535028d9 (patch)
tree610f4c71dd44d12f68bacccb5809135d10771192 /src/kernel/tasks/userspace.c
parent09a66e91ec9e8a677aa48f27798753084f213713 (diff)
Sooooooo many race conditions
NEXT: SPINLOCKS!
Diffstat (limited to 'src/kernel/tasks/userspace.c')
-rw-r--r--src/kernel/tasks/userspace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kernel/tasks/userspace.c b/src/kernel/tasks/userspace.c
index 52eb528..aedec2b 100644
--- a/src/kernel/tasks/userspace.c
+++ b/src/kernel/tasks/userspace.c
@@ -21,6 +21,7 @@ u32 spawn_child(struct process *child)
void userspace_enter(struct process *proc)
{
+ cli();
proc_bottom = proc;
proc->next = NULL;
hl_eip = proc->registers.eip;