mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 03:37:53 +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:
committed by
Andreas Kling
parent
74881ac649
commit
84a399de5d
@@ -50,7 +50,7 @@ UNMAP_AFTER_INIT static Access::Type detect_optimal_access_type(bool mmio_allowe
|
||||
|
||||
UNMAP_AFTER_INIT void initialize()
|
||||
{
|
||||
bool mmio_allowed = kernel_command_line().lookup("pci_mmio").value_or("off") == "on";
|
||||
bool mmio_allowed = kernel_command_line().is_mmio_enabled();
|
||||
|
||||
if (detect_optimal_access_type(mmio_allowed) == Access::Type::MMIO)
|
||||
MMIOAccess::initialize(ACPI::Parser::the()->find_table("MCFG"));
|
||||
|
||||
Reference in New Issue
Block a user