summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlmuHS <almuhs@github.com>2019-10-03 15:44:31 +0200
committerAlmuHS <almuhs@github.com>2019-10-03 15:49:55 +0200
commit87cc10d9ffefcf2286a862c09016fba39dc88e7e (patch)
treeb48578968f6e8402684b25b27641dd5c19e608f4
parent563082e5e117c305ca955558dd0e86928d1fd74b (diff)
refactor: disable dummyf call
-rw-r--r--i386/i386/mp_desc.c8
1 files 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];