mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:08:12 +00:00
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".
This commit is contained in:
parent
36a82188a8
commit
cfc2f33dcb
3 changed files with 13 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue