mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 06:37:52 +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:
committed by
Andreas Kling
parent
d76fb99403
commit
4fe2ee0221
@@ -67,6 +67,7 @@ VFS* vfs;
|
||||
auto dev_ptmx = make<PTYMultiplexer>();
|
||||
|
||||
bool text_debug = KParams::the().has("text_debug");
|
||||
bool force_pio = KParams::the().has("force_pio");
|
||||
|
||||
auto root = KParams::the().get("root");
|
||||
if (root.is_empty()) {
|
||||
@@ -78,7 +79,7 @@ VFS* vfs;
|
||||
hang();
|
||||
}
|
||||
|
||||
auto pata0 = PATAChannel::create(PATAChannel::ChannelType::Primary);
|
||||
auto pata0 = PATAChannel::create(PATAChannel::ChannelType::Primary, force_pio);
|
||||
NonnullRefPtr<DiskDevice> root_dev = *pata0->master_device();
|
||||
|
||||
root = root.substring(strlen("/dev/hda"), root.length() - strlen("/dev/hda"));
|
||||
|
||||
Reference in New Issue
Block a user