summaryrefslogtreecommitdiff
path: root/src/sys/include/arch/amd64/mdcpu.h
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-09-15 12:31:08 -0400
committerIan Moffett <ian@osmora.org>2025-09-15 12:31:08 -0400
commit6bd92c969a6f4aefee258adc79a3ab0bde9443b2 (patch)
tree34ccbfba395827ce6975972704a52d43592803e5 /src/sys/include/arch/amd64/mdcpu.h
parent4122de881d3b7f9e54563affd7564213d415d1e5 (diff)
kern/amd64: lapic: Initialize percore Local APIC
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include/arch/amd64/mdcpu.h')
-rw-r--r--src/sys/include/arch/amd64/mdcpu.h7
1 files changed, 7 insertions, 0 deletions
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<n> 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_ */