Ignore:
Timestamp:
Apr 8, 2017, 12:27:12 AM (8 years ago)
Author:
Ben Rietbroek
Message:

Make checking for valid LVM-sector use CF instead of ZF [v1.1.1-testing]

Both the checks for LVM Signature and CRC already use CF on return.
Doing the same for complete LVM-sector validation is more consistent.

CAUTION:
This is a testbuild !
AirBoot uses the BIOS to access disks and a small coding error can trash
partition tables or other vital disk structures. You are advised to make
backups of TRACK0 and EBRs before using this testbuild. More info at:
https://rousseaux.github.io/netlabs.air-boot/pdf/AirBoot-v1.1.0-manual.pdf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bootcode/regular/driveio.asm

    r113 r114  
    13031303
    13041304        ; See if this is a valid LVM-sector
    1305         ; ZF=0 if valid
     1305        ; CY if valid
    13061306        call    LVM_ValidateSector
    13071307
     
    13271327
    13281328        ; Yep, we found the master LVM-sector
    1329         jnz     DriveIO_LoadMasterLVMSector_Found
     1329        jc      DriveIO_LoadMasterLVMSector_Found
     1330
    13301331        ; Try next location
    13311332        loop    DriveIO_LoadMasterLVMSector_NextTry
Note: See TracChangeset for help on using the changeset viewer.