amd64: Move APIC implementation out of clock.c

- Move the APIC implementation to its on file instead of having it in clock.c;
- Use the MADT for retrieving the Local APIC base address;
- Initialize the APIC during interrupt initialization.
This commit is contained in:
Matheus Pecoraro
2024-08-06 16:40:38 -03:00
committed by Chris Johns
parent 0665da8f1d
commit 7440264601
7 changed files with 401 additions and 287 deletions

View File

@@ -10,6 +10,7 @@ includes: []
install:
- destination: ${BSP_INCLUDEDIR}
source:
- bsps/x86_64/amd64/include/apic.h
- bsps/x86_64/amd64/include/bsp.h
- bsps/x86_64/amd64/include/clock.h
- bsps/x86_64/amd64/include/freebsd_loader.h
@@ -41,6 +42,7 @@ source:
- bsps/x86_64/amd64/acpi/osl/osl_interrupts.c
- bsps/x86_64/amd64/acpi/osl/osl_memory.c
- bsps/x86_64/amd64/acpi/osl/osl_tables.c
- bsps/x86_64/amd64/interrupts/apic.c
- bsps/x86_64/amd64/interrupts/idt.c
- bsps/x86_64/amd64/interrupts/isr_handler.S
- bsps/x86_64/amd64/interrupts/pic.c