mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:47:35 +00:00
Kernel: Ensure SMP mode is not enabled if IOAPIC mode is disabled
We need to use the IOAPIC in SMP mode, so if the user requested to disable it, we can't enable SMP mode either.
This commit is contained in:
parent
f11fbb6415
commit
30659040ed
3 changed files with 13 additions and 1 deletions
|
@ -40,7 +40,9 @@ UNMAP_AFTER_INIT void InterruptManagement::initialize()
|
|||
{
|
||||
VERIFY(!InterruptManagement::initialized());
|
||||
s_interrupt_management = new InterruptManagement();
|
||||
|
||||
if (!kernel_command_line().is_smp_enabled_without_ioapic_enabled()) {
|
||||
dbgln("Can't enable SMP mode without IOAPIC mode being enabled");
|
||||
}
|
||||
if (!kernel_command_line().is_ioapic_enabled() && !kernel_command_line().is_smp_enabled())
|
||||
InterruptManagement::the().switch_to_pic_mode();
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue