mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
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.
This commit is contained in:
parent
7757d874ad
commit
1a27220bca
Notes:
sideshowbarker
2024-07-17 22:10:39 +09:00
Author: https://github.com/Panky-codes
Commit: 1a27220bca
Pull-request: https://github.com/SerenityOS/serenity/pull/11413
Reviewed-by: https://github.com/IdanHo ✅
Reviewed-by: https://github.com/supercomputer7
3 changed files with 10 additions and 8 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue