apic: Added madt entry struct types

This also moves madt parsing to apic.c
This commit is contained in:
Michael Shaw 2023-02-28 19:51:37 -05:00
commit 57ed3eefe6
6 changed files with 130 additions and 41 deletions

View file

@ -30,12 +30,6 @@ struct rsdt {
uint32_t sdt[];
} PACKED;
struct madt {
struct acpi_sdt_header h;
uint32_t lapic_addr;
uint32_t flags;
} PACKED;
void acpi_init();
extern struct madt *__madt;

View file

@ -3,6 +3,8 @@
#include <kernel/common.h>
#define MSR_APIC_BASE 0x1B
#ifndef __ASM__
uint64_t rdmsr(uint32_t msr);