From baa82a4d4f6b4fb84ee94f16650376df88f34a54 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Tue, 23 Jan 2024 10:15:49 +0200 Subject: [PATCH] [HALx86] Mask profiling interrupt on init --- hal/halx86/apic/apictimer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hal/halx86/apic/apictimer.c b/hal/halx86/apic/apictimer.c index ec1e0f1ecef..9052655da43 100644 --- a/hal/halx86/apic/apictimer.c +++ b/hal/halx86/apic/apictimer.c @@ -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); }