https://wiki.osdev.org/ATA_PIO_Mode#IDENTIFY_command recommends the straight-and-narrow way, but the LBA bit shouldn't matter in drive-select during IDENTIFY command, according to the ATA 3 spec. And it works in Qemu and bochs. It'll slightly simplify drive parameter management.
This commit is contained in:
parent
83c25a03c9
commit
9818f1de98
|
@ -965,7 +965,7 @@ secondary-drive-exists?: # -> _/eax: boolean
|
|||
74/jump-if-= $secondary-drive-exists?:end/disp8
|
||||
}
|
||||
# identify
|
||||
(ata-drive-select 0xb0) # primary bus, secondary drive
|
||||
(ata-drive-select 0xf0) # primary bus, secondary drive
|
||||
(ata-sector-count 0)
|
||||
(ata-lba 0 0 0)
|
||||
(ata-command 0xec) # identify
|
||||
|
|
Loading…
Reference in New Issue