stos/amd64: cpu: Add LAPIC driver + MCB in KPCR
Signed-off-by: Chloe M <chloe@mensia.org>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user