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

Redone LVM sector validation [v1.1.1-testing]

AL.0 is 1 when a valid signature is found..
AH.0 is 1 when the CRC was OK.
ZF is 0 when LVM sector is valid.

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

    r98 r100  
    11761176
    11771177        ; See if this is a valid LVM-sector
    1178         ; CY=1 if valid
    1179         call    DriveIO_LVMSectorValid
     1178        ; ZF=0 if valid
     1179        call    LVM_ValidateSector
    11801180
    11811181;        pushf
     
    11921192
    11931193        ; Yep, we found the master LVM-sector
    1194         jc      DriveIO_LoadMasterLVMSector_Found
     1194        jnz     DriveIO_LoadMasterLVMSector_Found
    11951195        ; Try next location
    11961196        loop    DriveIO_LoadMasterLVMSector_NextTry
Note: See TracChangeset for help on using the changeset viewer.