diff options
author | Luke <luke.wilde@live.co.uk> | 2021-04-17 20:36:53 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-18 17:01:22 +0200 |
commit | c84107a1abc3e16f7fa685427cc0a6ef2b2ec745 (patch) | |
tree | f06f7602b304e6f28c35ace15d42efacee7fc403 /Kernel/CommandLine.cpp | |
parent | e98091ad159298dbaf6c8edb0372f6a4c12e8512 (diff) | |
download | serenity-c84107a1abc3e16f7fa685427cc0a6ef2b2ec745.zip |
Kernel: Add boot argument to disable the UHCI Controller
Helps with bare metal debugging, as we can't be sure our implementation
will work with a given machine.
As reported by someone on Discord, their machine hangs when we attempt
the dummy transfer.
Diffstat (limited to 'Kernel/CommandLine.cpp')
-rw-r--r-- | Kernel/CommandLine.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Kernel/CommandLine.cpp b/Kernel/CommandLine.cpp index 443fb0e20b..c81003447f 100644 --- a/Kernel/CommandLine.cpp +++ b/Kernel/CommandLine.cpp @@ -165,6 +165,11 @@ UNMAP_AFTER_INIT bool CommandLine::disable_physical_storage() const return contains("disable_physical_storage"); } +UNMAP_AFTER_INIT bool CommandLine::disable_uhci_controller() const +{ + return contains("disable_uhci_controller"); +} + UNMAP_AFTER_INIT AHCIResetMode CommandLine::ahci_reset_mode() const { const auto ahci_reset_mode = lookup("ahci_reset_mode").value_or("controller"); |