Fix uninitialized variables

This commit is contained in:
EnderIce2 2024-02-16 20:55:39 +02:00
parent 69aeb5c36a
commit 65d1b9f58b
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -89,7 +89,7 @@ namespace Interrupts
* *
* This will make sure that the event will not be * This will make sure that the event will not be
* removed by the kernel. * removed by the kernel.
* *
* This is used to prevent the kernel from removing * This is used to prevent the kernel from removing
* ACPI related handlers. (SCI interrupts) * ACPI related handlers. (SCI interrupts)
*/ */
@ -108,8 +108,8 @@ namespace Interrupts
constexpr uint32_t SORT_ITR = (SORT_START * 100) / SORT_DIVIDER; constexpr uint32_t SORT_ITR = (SORT_START * 100) / SORT_DIVIDER;
#if defined(a86) #if defined(a86)
/* APIC::APIC */ void *apic[MAX_CPU]; /* APIC::APIC */ void *apic[MAX_CPU] = {nullptr};
/* APIC::Timer */ void *apicTimer[MAX_CPU]; /* APIC::Timer */ void *apicTimer[MAX_CPU] = {nullptr};
#elif defined(aa64) #elif defined(aa64)
#endif #endif
void *InterruptFrames[INT_FRAMES_MAX]; void *InterruptFrames[INT_FRAMES_MAX];