stos/amd64: cpu: Add LAPIC driver + MCB in KPCR

Signed-off-by: Chloe M <chloe@mensia.org>
This commit is contained in:
2026-07-13 22:25:23 -04:00
parent 533483a367
commit 4165241b6f
6 changed files with 490 additions and 3 deletions
+5
View File
@@ -11,6 +11,7 @@
#include <machine/idt.h>
#include <machine/trap.h>
#include <machine/msr.h>
#include <machine/lapic.h>
/*
* Initialize interrupts for the current processor
@@ -65,5 +66,9 @@ HalKpcrP1Init(KPCR *Kpcr)
VOID
HalKpcrP2Init(KPCR *Kpcr)
{
/* Initialize per-processor pools */
ExPoolRegionInit(&Kpcr->PoolRegion);
/* Initialize the Local APIC unit */
MdLapicInit(Kpcr);
}