[HALX86/APIC] Mask profiling interrupt on init

This commit is contained in:
Timo Kreuzer 2024-01-23 10:15:49 +02:00
parent 2c057d9bc1
commit 0f6e982ad7

View file

@ -36,11 +36,11 @@ ApicSetTimerInterval(ULONG MicroSeconds)
/* Set the count interval */
ApicWrite(APIC_TICR, (ULONG)TimerInterval);
/* Set to periodic */
/* Set to periodic / masked */
LvtEntry.Long = 0;
LvtEntry.TimerMode = 1;
LvtEntry.Vector = APIC_PROFILE_VECTOR;
LvtEntry.Mask = 0;
LvtEntry.Mask = 1;
ApicWrite(APIC_TMRLVTR, LvtEntry.Long);
}