summaryrefslogtreecommitdiff
path: root/Kernel/Interrupts
diff options
context:
space:
mode:
authorasynts <asynts@gmail.com>2020-09-07 11:53:54 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-08 14:01:21 +0200
commitec1080b18add64c72dfc1fed1953f9e30876c26e (patch)
tree6b9c1b243af770a6253a3d58ae1a2afab8598c4f /Kernel/Interrupts
parent9c83d6ff468870c58f2a81673b29d96106f543fb (diff)
downloadserenity-ec1080b18add64c72dfc1fed1953f9e30876c26e.zip
Refactor: Replace usages of FixedArray with Vector.
Diffstat (limited to 'Kernel/Interrupts')
-rw-r--r--Kernel/Interrupts/InterruptManagement.cpp1
-rw-r--r--Kernel/Interrupts/InterruptManagement.h3
2 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Interrupts/InterruptManagement.cpp b/Kernel/Interrupts/InterruptManagement.cpp
index e92d78bc5e..b59aecb23c 100644
--- a/Kernel/Interrupts/InterruptManagement.cpp
+++ b/Kernel/Interrupts/InterruptManagement.cpp
@@ -137,6 +137,7 @@ PhysicalAddress InterruptManagement::search_for_madt()
InterruptManagement::InterruptManagement()
: m_madt(search_for_madt())
{
+ m_interrupt_controllers.resize(1);
}
void InterruptManagement::switch_to_pic_mode()
diff --git a/Kernel/Interrupts/InterruptManagement.h b/Kernel/Interrupts/InterruptManagement.h
index eb5edd2de6..89f24780ec 100644
--- a/Kernel/Interrupts/InterruptManagement.h
+++ b/Kernel/Interrupts/InterruptManagement.h
@@ -26,7 +26,6 @@
#pragma once
-#include <AK/FixedArray.h>
#include <AK/Function.h>
#include <AK/NonnullOwnPtr.h>
#include <AK/OwnPtr.h>
@@ -89,7 +88,7 @@ private:
PhysicalAddress search_for_madt();
void locate_apic_data();
bool m_smp_enabled { false };
- FixedArray<RefPtr<IRQController>> m_interrupt_controllers { 1 };
+ Vector<RefPtr<IRQController>> m_interrupt_controllers;
Vector<ISAInterruptOverrideMetadata> m_isa_interrupt_overrides;
Vector<PCIInterruptOverrideMetadata> m_pci_interrupt_overrides;
PhysicalAddress m_madt;