Changeset 46 for trunk/BOOTCODE/SPECIAL/LVM.ASM
- Timestamp:
- Apr 12, 2014, 8:23:32 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BOOTCODE/SPECIAL/LVM.ASM
r40 r46 85 85 LVM_GetSectorCRC EndP 86 86 87 ; Checks DS:[SI], if a valid LVM Signature is found (sets carry in that case)87 ; Checks ds:[SI], if a valid LVM Signature is found (sets carry in that case) 88 88 ; This does not check for valid LVM CRC (which also needs to be done) 89 89 ; In: DS:SI - Sector that needs to get checked... … … 91 91 ; Destroyed: None 92 92 LVM_CheckSectorSignature Proc Near 93 test [CFG_IgnoreLVM], 1 ; We are supposed to ignore LVM, so93 test byte ptr [CFG_IgnoreLVM], 1 ; We are supposed to ignore LVM, so 94 94 jnz LVMCSS_InvalidSignature ; any sector is bad! 95 cmp w ptr [si+LocLVM_SignatureStart], 5202h ; Rousseau: identify LVM sector95 cmp word ptr [si+LocLVM_SignatureStart], 5202h ; Rousseau: identify LVM sector 96 96 jne LVMCSS_InvalidSignature 97 cmp w ptr [si+LocLVM_SignatureStart+2], 'BM'97 cmp word ptr [si+LocLVM_SignatureStart+2], 'BM' 98 98 jne LVMCSS_InvalidSignature 99 cmp w ptr [si+LocLVM_SignatureStart+4], 'MP'99 cmp word ptr [si+LocLVM_SignatureStart+4], 'MP' 100 100 jne LVMCSS_InvalidSignature 101 cmp w ptr [si+LocLVM_SignatureStart+6], 'DF'101 cmp word ptr [si+LocLVM_SignatureStart+6], 'DF' 102 102 jne LVMCSS_InvalidSignature 103 103 stc … … 115 115 LVM_CheckSectorCRC Proc Near Uses ax dx 116 116 call LVM_GetSectorCRC 117 cmp ax, w ptr [si+LocLVM_CRC]117 cmp ax, word ptr [si+LocLVM_CRC] 118 118 jne LVMCSCRC_BadCRC 119 cmp dx, w ptr [si+LocLVM_CRC+2]119 cmp dx, word ptr [si+LocLVM_CRC+2] 120 120 jne LVMCSCRC_BadCRC 121 121 stc … … 133 133 LVM_UpdateSectorCRC Proc Near Uses ax dx 134 134 call LVM_GetSectorCRC 135 mov w ptr [si+LocLVM_CRC], ax136 mov w ptr [si+LocLVM_CRC+2], dx135 mov word ptr [si+LocLVM_CRC], ax 136 mov word ptr [si+LocLVM_CRC+2], dx 137 137 ret 138 138 LVM_UpdateSectorCRC EndP
Note:
See TracChangeset
for help on using the changeset viewer.