ptos/amd64: cpu: Add Local APIC timer ISR stub
Signed-off-by: Chloe M <chloe@mensia.org>
This commit is contained in:
@@ -349,4 +349,12 @@ MdLapicInit(KPCR *Kpcr)
|
||||
|
||||
/* Calibrate the timer */
|
||||
LapicTimerCalibrate(Mcb);
|
||||
|
||||
/* Set the LAPIC timer ISR gate */
|
||||
MdIdtSetGate(
|
||||
0x81,
|
||||
(UPTR)LapicTmrIsr,
|
||||
IDT_INT_GATE,
|
||||
0
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user