From 6bd92c969a6f4aefee258adc79a3ab0bde9443b2 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 15 Sep 2025 12:31:08 -0400 Subject: kern/amd64: lapic: Initialize percore Local APIC Signed-off-by: Ian Moffett --- src/sys/include/arch/amd64/mdcpu.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/sys/include/arch/amd64/mdcpu.h') diff --git a/src/sys/include/arch/amd64/mdcpu.h b/src/sys/include/arch/amd64/mdcpu.h index c38aae2..0a39eb4 100644 --- a/src/sys/include/arch/amd64/mdcpu.h +++ b/src/sys/include/arch/amd64/mdcpu.h @@ -41,10 +41,17 @@ /* * Represents the machine dependent information * of a processor core on the machine. + * + * @apic_id: Local APIC ID + * @cr3: CR3 register value (PML phys) + * @lapic_base: LAPIC register interface base + * @x2apic: Has the x2APIC? Is 1 if true */ struct mdcore { uint32_t apic_id; uint64_t cr3; + void *lapic_base; + uint8_t x2apic : 1; }; #endif /* !_MACHINE_MDCPU_H_ */ -- cgit v1.2.3