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:
Kartik K. Agaram 2021-03-27 08:38:01 -07:00
parent 83c25a03c9
commit 9818f1de98
1 changed files with 1 additions and 1 deletions

View File

@ -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