diff options
author | AlmuHS <almuhs@github.com> | 2019-04-30 01:53:18 +0200 |
---|---|---|
committer | AlmuHS <almuhs@github.com> | 2019-04-30 01:53:18 +0200 |
commit | b9323fbaa32d27918f26c114272bb99189c5c7c3 (patch) | |
tree | 9b54f55b54b7155c7d2341d2d3fc986c2517b430 | |
parent | 7e7894f595f07d0c6b621f6e42a30ba356f88ad4 (diff) |
try to fix stack reserve
-rw-r--r-- | i386/i386/mp_desc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/i386/i386/mp_desc.c b/i386/i386/mp_desc.c index e7f9408e..794c8517 100644 --- a/i386/i386/mp_desc.c +++ b/i386/i386/mp_desc.c @@ -549,9 +549,9 @@ start_other_cpus(void) /*TODO: Put stacks in an array */ //*stack_ptr = (void*) kalloc(STACK_SIZE); cpu_stack[cpu] = stack_start; - _cpu_stack_top[cpu] = stack_start + STACK_SIZE; + _cpu_stack_top[cpu] = stack_start + STACK_SIZE; - stack_ptr = &cpu_stack[cpu]; + stack_ptr = (void*) cpu_stack[cpu]; machine_slot[cpu].running = FALSE; cpu_start(cpu); |