Changeset 98


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

Location:
trunk/bootcode
Files:
2 edited

Legend:

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

    r95 r98  
    10801080
    10811081
    1082 ; See if a LVM-sector is valid.
    1083 ; In  : si, pointer to sector
    1084 ; Out : CY if valid LVM sector, NC if not
    1085 DriveIO_LVMSectorValid           Proc  Near
    1086         pusha
    1087 
    1088         call    LVM_CheckSectorSignature
    1089         ; NC if no signature found
    1090         jnc     DriveIO_LVMSectorValid_End
    1091 
    1092         call    LVM_CheckSectorCRC
    1093         ; Force valid !!!
    1094         stc
    1095 
    1096     DriveIO_LVMSectorValid_End:
    1097         popa
    1098         ret
    1099 DriveIO_LVMSectorValid           EndP
    11001082
    11011083; ------------------------------------------------------
  • 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.