1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:37:34 +00:00

Kernel: Add a kernel boot parameter to force PIO mode

Also added an option in the run script to force PIO operation mode with
the IDE controller.
In addition, we're no longer limited to PIIX3 and PIIX4 chipsets for DMA
This commit is contained in:
supercomputer7 2019-11-13 19:29:16 +02:00 committed by Andreas Kling
parent d76fb99403
commit 4fe2ee0221
5 changed files with 32 additions and 23 deletions

View file

@ -24,7 +24,7 @@ const char* PATADiskDevice::class_name() const
bool PATADiskDevice::read_blocks(unsigned index, u16 count, u8* out)
{
if (m_channel.m_bus_master_base && m_channel.m_dma_enabled.resource())
if (m_channel.m_bus_master_base && m_channel.m_dma_enabled.resource() && !m_channel.m_force_pio.resource())
return read_sectors_with_dma(index, count, out);
return read_sectors(index, count, out);
}