summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlmuHS <almuhs@github.com>2019-04-30 00:42:11 +0200
committerAlmuHS <almuhs@github.com>2019-04-30 00:42:11 +0200
commitbd91c0d233f81bec878bf91bba2d68a6f6f34fbd (patch)
treecb7a75ef1947a5e685f904d53e28d93ec51337c5
parent26a0568f33df5bb772e7260470b1a56494562c3b (diff)
initialize stack_ptr to cpu stack
-rw-r--r--i386/i386/mp_desc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/i386/i386/mp_desc.c b/i386/i386/mp_desc.c
index 8ba01a5f..eaa7ad91 100644
--- a/i386/i386/mp_desc.c
+++ b/i386/i386/mp_desc.c
@@ -553,6 +553,8 @@ start_other_cpus(void)
cpu_stack[cpu] = stack_start;
_cpu_stack_top[cpu] = stack_start + STACK_SIZE;
+ stack_ptr = cpu_stack[cpu];
+
machine_slot[cpu].running = FALSE;
cpu_start(cpu);
}