mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
PATAChannel: Alert user when no PCI device is found
This helps aid debugging of issues such as #695, where the bridge chip that controls IDE is NOT a PIIX3/4 compatible controller. Instead of just hanging when the DMA registers can't be accessed, the system will inform the user that no valid IDE controller has been found. In this case, the system will not attempt to initialise the DMA registers and instead use PIO mode.
This commit is contained in:
parent
1b2ef8582c
commit
6c1a549057
1 changed files with 2 additions and 0 deletions
|
@ -124,6 +124,8 @@ void PATAChannel::initialize()
|
|||
m_bus_master_base = PCI::get_BAR4(m_pci_address) & 0xfffc;
|
||||
m_dma_buffer_page = MM.allocate_supervisor_physical_page();
|
||||
kprintf("PATAChannel: PIIX Bus master IDE: I/O @ %x\n", m_bus_master_base);
|
||||
} else {
|
||||
kprintf("PATAChannel: Unable to find valid PATAChannel controller! Falling back to PIO mode!\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue