From 8ee6f7a06ce2d569805edd35a1ac79c2511b2a27 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 11 Feb 2024 23:40:21 -0500 Subject: kernel/amd64: acpi: Fetch LAPIC base separate This commit creates a acpi_get_lapic_base() so we don't have to parse the MADT each time we want the Local APIC base. Signed-off-by: Ian Moffett --- sys/include/firmware/acpi/acpi.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/include/firmware') diff --git a/sys/include/firmware/acpi/acpi.h b/sys/include/firmware/acpi/acpi.h index b3416f4..66a955f 100644 --- a/sys/include/firmware/acpi/acpi.h +++ b/sys/include/firmware/acpi/acpi.h @@ -41,5 +41,6 @@ bool acpi_is_checksum_valid(struct acpi_header *hdr); struct acpi_root_sdt *acpi_get_root_sdt(void); size_t acpi_get_root_sdt_len(void); void acpi_parse_madt(struct cpu_info *ci); +void *acpi_get_lapic_base(void); #endif /* !_ACPI_ACPI_H_ */ -- cgit v1.2.3