diff options
author | Liav A <liavalb@gmail.com> | 2021-03-19 04:51:40 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-21 13:41:09 +0100 |
commit | cfc2f33dcba18e2afaeeba6c6158269cb9abea30 (patch) | |
tree | 7981bcea558578358312499579d95c067d86d8f4 /Kernel/CommandLine.cpp | |
parent | 36a82188a88c95315e03f6fcede237bc66831702 (diff) | |
download | serenity-cfc2f33dcba18e2afaeeba6c6158269cb9abea30.zip |
Kernel/AHCI: Add a boot argument to force AHCI to operate on IRQ 11
As a compromise, if the fimrware decided to set the IRQ line to be 7,
or something else we can't deal with, the user can simply force the code
to work with IRQ 11, with the boot argument "force_ahci_irq_11" being
set to "on".
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 4294b97c9c..f050efbe05 100644 --- a/Kernel/CommandLine.cpp +++ b/Kernel/CommandLine.cpp @@ -113,6 +113,11 @@ UNMAP_AFTER_INIT bool CommandLine::is_mmio_enabled() const return lookup("pci_mmio").value_or("off") == "on"; } +UNMAP_AFTER_INIT bool CommandLine::is_forcing_irq_11_for_ahci() const +{ + return lookup("force_ahci_irq_11").value_or("off") == "on"; +} + UNMAP_AFTER_INIT bool CommandLine::is_legacy_time_enabled() const { return lookup("time").value_or("modern") == "legacy"; |