From 64799765e2af5f52a74de10c9575cc30009bdfd0 Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Mon, 13 Feb 2023 01:27:00 +0100 Subject: i386: Refactor int stacks to be per cpu for SMP This also serialises the AP bringup, so paging can be enabled per cpu one by one. Also-by: Almudena Garcia --- i386/i386at/ioapic.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'i386/i386at/ioapic.c') diff --git a/i386/i386at/ioapic.c b/i386/i386at/ioapic.c index 003690ed..f7b0d1d3 100644 --- a/i386/i386at/ioapic.c +++ b/i386/i386at/ioapic.c @@ -186,9 +186,8 @@ lapic_enable_timer(void) /* Some buggy hardware requires this set again */ lapic->divider_config.r = LAPIC_TIMER_DIVIDE_16; - /* Enable interrupts for the first time on BSP */ - asm("sti"); - printf("LAPIC timer configured\n"); + /* Enable interrupts for the first time */ + printf("LAPIC timer configured on cpu%d\n", cpu_number()); } void -- cgit v1.2.3