diff options
author | Liav A <liavalb@gmail.com> | 2021-04-08 21:18:48 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-08 22:17:13 +0200 |
commit | a0be30f655a26e3e597292aab406231358a38202 (patch) | |
tree | db0f97c8281dcd9f8b481cd499b8ac125afe1674 /Kernel/CommandLine.cpp | |
parent | 649564585ef42527b35d261363885af99cfb0a1a (diff) | |
download | serenity-a0be30f655a26e3e597292aab406231358a38202.zip |
Kernel: Introduce two new boot arguments to assist with bare metal debug
The first one is for disabling the PS2 controller, the other one is for
disabling physical storage enumeration.
We can't be sure any machine will work with our implementation,
therefore this will help us to test more machines.
Diffstat (limited to 'Kernel/CommandLine.cpp')
-rw-r--r-- | Kernel/CommandLine.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Kernel/CommandLine.cpp b/Kernel/CommandLine.cpp index 4f8c254a7f..443fb0e20b 100644 --- a/Kernel/CommandLine.cpp +++ b/Kernel/CommandLine.cpp @@ -155,6 +155,16 @@ UNMAP_AFTER_INIT HPETMode CommandLine::hpet_mode() const PANIC("Unknown HPETMode: {}", hpet_mode); } +UNMAP_AFTER_INIT bool CommandLine::disable_ps2_controller() const +{ + return contains("disable_ps2_controller"); +} + +UNMAP_AFTER_INIT bool CommandLine::disable_physical_storage() const +{ + return contains("disable_physical_storage"); +} + UNMAP_AFTER_INIT AHCIResetMode CommandLine::ahci_reset_mode() const { const auto ahci_reset_mode = lookup("ahci_reset_mode").value_or("controller"); |