Ignore:
Timestamp:
Apr 12, 2014, 8:23:32 AM (11 years ago)
Author:
Ben Rietbroek
Message:

Various Changes [2012-04-14]

WARNING!!

All commits upto and including the commit of [2012-05-13] contain
a severe bug!! Building from these sources and then disabling
the 'force LBA' feature while also using the drive-letter feature or
editing the label can DESTROY THE MBR on ALL ATTACHED DISKS!!
DO NOT DISABLE 'FORCE LBA USAGE' WHEN BUILT FROM THE THESE COMMITS!!

Changes

o Added BLDLEVEL support
o Enhanced Master Make
o Sanitized sources
o Support for Wasm and Masm6 (experimental)
o Renamed MBR_PROT.ASM to MBR-PROT.ASM
o Merged bitfield code Into Installer
o First steps for cross platform Installer
o More...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BOOTCODE/SPECIAL/LVM.ASM

    r40 r46  
    8585LVM_GetSectorCRC                EndP
    8686
    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)
    8888;  This does not check for valid LVM CRC (which also needs to be done)
    8989;        In: DS:SI - Sector that needs to get checked...
     
    9191; Destroyed: None
    9292LVM_CheckSectorSignature        Proc Near
    93    test    [CFG_IgnoreLVM], 1            ; We are supposed to ignore LVM, so
     93   test    byte ptr [CFG_IgnoreLVM], 1            ; We are supposed to ignore LVM, so
    9494   jnz     LVMCSS_InvalidSignature       ;  any sector is bad!
    95    cmp     wptr [si+LocLVM_SignatureStart], 5202h                                ; Rousseau: identify LVM sector
     95   cmp     word ptr [si+LocLVM_SignatureStart], 5202h                                ; Rousseau: identify LVM sector
    9696   jne     LVMCSS_InvalidSignature
    97    cmp     wptr [si+LocLVM_SignatureStart+2], 'BM'
     97   cmp     word ptr [si+LocLVM_SignatureStart+2], 'BM'
    9898   jne     LVMCSS_InvalidSignature
    99    cmp     wptr [si+LocLVM_SignatureStart+4], 'MP'
     99   cmp     word ptr [si+LocLVM_SignatureStart+4], 'MP'
    100100   jne     LVMCSS_InvalidSignature
    101    cmp     wptr [si+LocLVM_SignatureStart+6], 'DF'
     101   cmp     word ptr [si+LocLVM_SignatureStart+6], 'DF'
    102102   jne     LVMCSS_InvalidSignature
    103103   stc
     
    115115LVM_CheckSectorCRC              Proc Near   Uses ax dx
    116116   call    LVM_GetSectorCRC
    117    cmp     ax, wptr [si+LocLVM_CRC]
     117   cmp     ax, word ptr [si+LocLVM_CRC]
    118118   jne     LVMCSCRC_BadCRC
    119    cmp     dx, wptr [si+LocLVM_CRC+2]
     119   cmp     dx, word ptr [si+LocLVM_CRC+2]
    120120   jne     LVMCSCRC_BadCRC
    121121   stc
     
    133133LVM_UpdateSectorCRC            Proc Near   Uses ax dx
    134134   call    LVM_GetSectorCRC
    135    mov     wptr [si+LocLVM_CRC], ax
    136    mov     wptr [si+LocLVM_CRC+2], dx
     135   mov     word ptr [si+LocLVM_CRC], ax
     136   mov     word ptr [si+LocLVM_CRC+2], dx
    137137   ret
    138138LVM_UpdateSectorCRC            EndP
Note: See TracChangeset for help on using the changeset viewer.