diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-03-27 08:38:01 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-03-27 08:38:01 -0700 |
commit | 9818f1de981fe9206940cf89e9422388f8853cc2 (patch) | |
tree | e8d7a64d33199995d2b2c5743c576427aa5292bf /boot.subx | |
parent | 83c25a03c90e9823be2dc0a7e305b3bb4fab87c8 (diff) | |
download | mu-9818f1de981fe9206940cf89e9422388f8853cc2.tar.gz |
.
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.
Diffstat (limited to 'boot.subx')
-rw-r--r-- | boot.subx | 2 |
1 files changed, 1 insertions, 1 deletions
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 |