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/REGULAR/DRIVEIO.ASM

    r43 r46  
    311311
    312312      ;or       bx,ax
    313       test     [ExtendedAbsPosSet],1
     313      test     byte ptr [ExtendedAbsPosSet],1
    314314      jz       pri
    315315
     
    561561; Keeps DS:SI for caller, sets carry if valid LVM sector encountered
    562562DriveIO_LoadLVMSector   Proc Near  Uses ax bx cx dx
    563         test    [CFG_IgnoreLVM], 1            ; We are supposed to ignore LVM, so
     563        test    byte ptr [CFG_IgnoreLVM], 1            ; We are supposed to ignore LVM, so
    564564        jnz     DIOLLVMS_NoLVMSector          ;  don't load but declare as bad!
    565565        mov     ax, wptr cs:[CurPartition_Location+0]
     
    605605; Keeps DS:SI for caller, saves at anytime w/o checks (!)
    606606DriveIO_SaveLVMSector   Proc Near  Uses ax bx cx dx
    607         test    [CFG_IgnoreLVM], 1            ; We are supposed to ignore LVM, so
     607        test    byte ptr [CFG_IgnoreLVM], 1            ; We are supposed to ignore LVM, so
    608608        jnz     DIOSLVMS_SevereError          ;  don't save at anytime (security!)
    609609        mov     ax, wptr cs:[CurPartition_Location+0]
     
    633633;  so users will notice that something is bad with their partition table(s)
    634634DriveIO_GotLoadError    Proc Near
    635         test    cs:CurIO_Scanning, 1          ; Must be CS:, cause DS!=CS maybe here
     635        test    byte ptr cs:[CurIO_Scanning], 1          ; Must be CS:, cause DS!=CS maybe here
    636636        jnz     InScanMode
    637637        jmp     MBR_LoadError
     
    671671        jb      DIOLS_UseNormal
    672672
    673         test    cs:[CurIO_UseExtension], 1
     673        test    byte ptr cs:[CurIO_UseExtension], 1
    674674        jz      DIOLS_UseNormal
    675675        ; Are we forced do use LBA via Setting?
     
    794794; #########################################################################
    795795DriveIO_SaveSector              Proc Near  Uses ax bx cx ds si es di
    796         test    cs:[CurIO_UseExtension], 1
     796        test    byte ptr cs:[CurIO_UseExtension], 1
    797797        jz      DIOSS_UseNormal
    798798        ; Are we forced do use LBA via Setting?
    799         test    cs:[CFG_ForceLBAUsage], 1
     799        test    byte ptr cs:[CFG_ForceLBAUsage], 1
    800800        jnz     DIOSS_UseExtension
    801801        ; Is the drive not a harddrive?
     
    12301230        pop     bx
    12311231
    1232         mov      [CurIO_UseExtension],1
     1232        mov      byte ptr [CurIO_UseExtension],1
    12331233
    12341234        popf
Note: See TracChangeset for help on using the changeset viewer.