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

Moved LVM sector validation funtion to 'lvm' module [v1.1.1-testing]

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/special/lvm.asm

    r84 r98  
    125125LVM_CheckSectorCRC              EndP
    126126
     127; See if a LVM-sector is valid.
     128; In  : si, pointer to sector
     129; Out : CY if valid LVM sector, NC if not
     130DriveIO_LVMSectorValid           Proc  Near
     131        pusha
     132
     133        call    LVM_CheckSectorSignature
     134        ; NC if no signature found
     135        jnc     DriveIO_LVMSectorValid_End
     136
     137        call    LVM_CheckSectorCRC
     138        ; Force valid !!!
     139        stc
     140
     141    DriveIO_LVMSectorValid_End:
     142        popa
     143        ret
     144DriveIO_LVMSectorValid           EndP
     145
    127146; Updates Sector with valid LVM CRC
    128147;  This one doesn't check, if it's really an LVM sector, so check before!
Note: See TracChangeset for help on using the changeset viewer.