apic: Added madt entry struct types
This also moves madt parsing to apic.c
This commit is contained in:
parent
6627486995
commit
57ed3eefe6
6 changed files with 130 additions and 41 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@
|
|||
|
||||
#include <kernel/common.h>
|
||||
|
||||
#define MSR_APIC_BASE 0x1B
|
||||
|
||||
#ifndef __ASM__
|
||||
|
||||
uint64_t rdmsr(uint32_t msr);
|
||||
|
|
|
|||
Loading…
Reference in a new issue