From 1cf4f1a392e461d3e1fa1c955319d1d92c8b93fd Mon Sep 17 00:00:00 2001 From: AlmuHS Date: Thu, 3 Oct 2019 15:44:31 +0200 Subject: refactor: disable dummyf call --- i386/i386/mp_desc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/i386/i386/mp_desc.c b/i386/i386/mp_desc.c index 64eca2b6..30c47fc1 100644 --- a/i386/i386/mp_desc.c +++ b/i386/i386/mp_desc.c @@ -246,7 +246,7 @@ void startup_cpu(uint32_t apic_id) icr_l = (INIT << 8) | (ASSERT << 14) | (LEVEL << 15); send_ipi(icr_h, icr_l); - dummyf(lapic->apic_id.r); + //dummyf(lapic->apic_id.r); //wait until IPI is sent delay(10000); @@ -259,7 +259,7 @@ void startup_cpu(uint32_t apic_id) icr_l = (INIT << 8) | (DE_ASSERT << 14) | (LEVEL << 15); send_ipi(icr_h, icr_l); - dummyf(lapic->apic_id.r); + //dummyf(lapic->apic_id.r); //wait until IPI is sent delay(10000); @@ -285,7 +285,7 @@ void startup_cpu(uint32_t apic_id) icr_l = (STARTUP << 8) | ((AP_BOOT_ADDR >>12) & 0xff); send_ipi(icr_h, icr_l); - dummyf(lapic->apic_id.r); + //dummyf(lapic->apic_id.r); //wait until IPI is sent delay(1000); @@ -590,7 +590,7 @@ start_other_cpus(void) { //Initialize cpu stack cpu_stack[cpu-1] = stack_start; - _cpu_stack_top[cpu-1] = stack_start + STACK_SIZE; + _cpu_stack_top[cpu-1] = stack_start + STACK_SIZE - 1; stack_ptr = cpu_stack[cpu-1]; -- cgit v1.2.3