diff options
author | Pankaj Raghav <pankydev8@gmail.com> | 2021-12-25 09:38:58 +0530 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2021-12-26 16:22:09 +0200 |
commit | 1a27220bca77e2c92a78ed24424de3efb0dcbf52 (patch) | |
tree | c6d1478f57d1a36ca9fb26712c25b6fa74dc04db /Kernel/init.cpp | |
parent | 7757d874adc269dce5b6ee44792b6c5a3841ff58 (diff) | |
download | serenity-1a27220bca77e2c92a78ed24424de3efb0dcbf52.zip |
Kernel: Encapsulate APIC initialization inside InterruptManagement
Currently the APIC class is constructed irrespective of whether it
is used or not.
So, move APIC initialization from init to the InterruptManagement
class and construct the APIC class only when it is needed.
Diffstat (limited to 'Kernel/init.cpp')
-rw-r--r-- | Kernel/init.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Kernel/init.cpp b/Kernel/init.cpp index bddef41521..e3d6f99691 100644 --- a/Kernel/init.cpp +++ b/Kernel/init.cpp @@ -203,7 +203,6 @@ extern "C" [[noreturn]] UNMAP_AFTER_INIT void init(BootInfo const& boot_info) for (ctor_func_t* ctor = start_ctors; ctor < end_ctors; ctor++) (*ctor)(); - APIC::initialize(); InterruptManagement::initialize(); ACPI::initialize(); |