sunrise: fix incorrect LBA setup
authorAlan Cox <alan@linux.intel.com>
Sun, 7 Apr 2019 10:41:14 +0000 (11:41 +0100)
committerAlan Cox <alan@linux.intel.com>
Sun, 7 Apr 2019 10:41:14 +0000 (11:41 +0100)
Kernel/platform-msx1/sunrise.s

index 23dd221..623b9e1 100644 (file)
@@ -195,8 +195,10 @@ init_io:
        and #0x0F                       ; Merge drive and bits 24-27
        or e
        ld IDE_REG_LBA_3(ix),a
+       push hl
        ld hl,#0
        call devide_wait_ready
+       pop hl
        jr nz, xfer_timeout
        ld IDE_REG_LBA_2(ix),l
        ld hl, (_blk_op + BLK_OP_LBA)