From 65d1b9f58b7f296e8ce835f736afb2bfe921da19 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Fri, 16 Feb 2024 20:55:39 +0200 Subject: [PATCH] Fix uninitialized variables --- core/interrupts_manager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/interrupts_manager.cpp b/core/interrupts_manager.cpp index cc9fc17..042c779 100644 --- a/core/interrupts_manager.cpp +++ b/core/interrupts_manager.cpp @@ -89,7 +89,7 @@ namespace Interrupts * * This will make sure that the event will not be * removed by the kernel. - * + * * This is used to prevent the kernel from removing * ACPI related handlers. (SCI interrupts) */ @@ -108,8 +108,8 @@ namespace Interrupts constexpr uint32_t SORT_ITR = (SORT_START * 100) / SORT_DIVIDER; #if defined(a86) - /* APIC::APIC */ void *apic[MAX_CPU]; - /* APIC::Timer */ void *apicTimer[MAX_CPU]; + /* APIC::APIC */ void *apic[MAX_CPU] = {nullptr}; + /* APIC::Timer */ void *apicTimer[MAX_CPU] = {nullptr}; #elif defined(aa64) #endif void *InterruptFrames[INT_FRAMES_MAX];