mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:58:11 +00:00
Kernel: Move Kernel CommandLine parsing to strongly typed API.
Previously all of the CommandLine parsing was spread out around the Kernel. Instead move it all into the Kernel CommandLine class, and expose a strongly typed API for querying the state of options.
This commit is contained in:
parent
74881ac649
commit
84a399de5d
9 changed files with 143 additions and 45 deletions
|
@ -61,7 +61,7 @@ UNMAP_AFTER_INIT void InterruptManagement::initialize()
|
|||
VERIFY(!InterruptManagement::initialized());
|
||||
s_interrupt_management = new InterruptManagement();
|
||||
|
||||
if (kernel_command_line().lookup("smp").value_or("off") == "on")
|
||||
if (kernel_command_line().is_smp_enabled())
|
||||
InterruptManagement::the().switch_to_ioapic_mode();
|
||||
else
|
||||
InterruptManagement::the().switch_to_pic_mode();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue