mirror of
https://github.com/RGBCube/serenity
synced 2025-07-03 05:32:13 +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:
parent
d76fb99403
commit
4fe2ee0221
5 changed files with 32 additions and 23 deletions
|
@ -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"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue