mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +00:00
Revert "Kernel/AHCI: Add a boot argument to force AHCI to operate on IRQ 11"
This reverts commit cfc2f33dcb
.
We can't actually change the IRQ line value and expect the device
to work with it (this was my mistake).
That register is R/W so the firmware can figure out IRQ routing and put
the correct value and write it to the Interrupt line register.
This commit is contained in:
parent
84e34d76d8
commit
b25f84daaa
3 changed files with 0 additions and 13 deletions
|
@ -172,13 +172,6 @@ void AHCIController::initialize()
|
|||
hba().control_regs.ghc = 0x80000000; // Ensure that HBA knows we are AHCI aware.
|
||||
PCI::enable_interrupt_line(pci_address());
|
||||
PCI::enable_bus_mastering(pci_address());
|
||||
|
||||
// FIXME: This is a hack for VMWare (and possibly other hardware) that set
|
||||
// the IRQ line to 7 or other weird value. Find a better way to set this
|
||||
// with balancing IRQ sharing in mind.
|
||||
if (kernel_command_line().is_forcing_irq_11_for_ahci())
|
||||
PCI::set_interrupt_line(pci_address(), 11);
|
||||
|
||||
enable_global_interrupts();
|
||||
m_handlers.append(AHCIPortHandler::create(*this, PCI::get_interrupt_line(pci_address()),
|
||||
AHCI::MaskedBitField((volatile u32&)(hba().control_regs.pi))));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue