diff options
author | Damien Zammit <damien@zamaudio.com> | 2023-02-13 01:27:00 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-02-13 01:27:00 +0100 |
commit | 64799765e2af5f52a74de10c9575cc30009bdfd0 (patch) | |
tree | 72a20eb964f2ae182d0b7c47e72a84931f4936ca /i386/i386at/ioapic.c | |
parent | ea2646b6d6f2dc02a59a2693d08957596c84e9d3 (diff) | |
download | gnumach-64799765e2af5f52a74de10c9575cc30009bdfd0.tar.gz gnumach-64799765e2af5f52a74de10c9575cc30009bdfd0.tar.bz2 gnumach-64799765e2af5f52a74de10c9575cc30009bdfd0.zip |
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 <liberamenso10000@gmail.com>
Diffstat (limited to 'i386/i386at/ioapic.c')
-rw-r--r-- | i386/i386at/ioapic.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 |