From 9818f1de981fe9206940cf89e9422388f8853cc2 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 27 Mar 2021 08:38:01 -0700 Subject: . 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. --- boot.subx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot.subx b/boot.subx index 31f18380..bc49b49d 100644 --- a/boot.subx +++ b/boot.subx @@ -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 -- cgit 1.4.1-2-gfad0