summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlmuHS <almuhs@github.com>2019-05-01 17:38:03 +0200
committerAlmuHS <almuhs@github.com>2019-05-01 17:38:03 +0200
commit559f518f8dd78d19e198ef57f7e5a0ed50262a17 (patch)
tree0ab8a31d8cf77d6eedafd71cf3bd7b9d20346bc8
parent8684c5f8c1d0ecd2726949a61ce0ef83b9ab8a8d (diff)
try to fix: stack crash
-rw-r--r--i386/i386/mp_desc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/i386/i386/mp_desc.c b/i386/i386/mp_desc.c
index 25a69655..0bca1672 100644
--- a/i386/i386/mp_desc.c
+++ b/i386/i386/mp_desc.c
@@ -130,7 +130,7 @@ extern void* *apboot, *apbootend;
//cpu stack
extern void* stack_ptr;
-extern void *stack_bsp;
+extern void **stack_bsp;
//ICR Destination mode
#define PHYSICAL 0
@@ -555,7 +555,7 @@ start_other_cpus(void)
cpu_stack[cpu] = stack_start;
_cpu_stack_top[cpu] = stack_start + STACK_SIZE;
- stack_ptr = (void*) &cpu_stack[cpu];
+ stack_ptr = &cpu_stack[cpu];
machine_slot[cpu].running = FALSE;
cpu_start(cpu);