mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 14:15:07 +00:00
Kernel: Extended IDE interface to allow slave device usage (#283)
The IDE Disk Controller driver has been extended to allow the secondary device on the channel to be initialised and used. A test as to whether this is working (for anyone interested) is to modify `init.cpp:87` to `auto dev_hd0 = IDEDiskDevice::create(IdeDiskDevice::DeviceType::SLAVE);`. The kernel will fail to boot, as there is no disk attached to CHANNEL 1's slave. This was born out of the fact that my FAT driver can't be tested as easily without creating a partition on `hda`.
This commit is contained in:
parent
8812b35c5e
commit
ab90d2e251
3 changed files with 53 additions and 12 deletions
|
@ -84,7 +84,7 @@ VFS* vfs;
|
|||
hang();
|
||||
}
|
||||
|
||||
auto dev_hd0 = IDEDiskDevice::create();
|
||||
auto dev_hd0 = IDEDiskDevice::create(IDEDiskDevice::DriveType::MASTER);
|
||||
|
||||
NonnullRefPtr<DiskDevice> root_dev = dev_hd0.copy_ref();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue