From e350804dc78ab01aaca6aba33792a652535028d9 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 9 May 2020 22:30:46 +0200 Subject: Sooooooo many race conditions NEXT: SPINLOCKS! --- src/kernel/tasks/userspace.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/kernel/tasks/userspace.c') 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; -- cgit v1.2.3