Ignore:
Timestamp:
Apr 11, 2014, 8:39:07 PM (12 years ago)
Author:
Ben Rietbroek
Message:

Reworked Build Environment [2012-02-15]

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 Reworked build environment
o Start made with coding FIXCODE in C
o Moved MBR protection image
o New overlap macro
o Protect type 0x35 from edit (user popup)
o Protect type 0x35 from adding to menu (user popup)
o More...
! No LVM Label change yet

Note

o Changed license to GPL v3

See file COPYING in trunk.

Location:
trunk/TOOLS/DOS/SETABOOT
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/TOOLS/DOS/SETABOOT/SETABOOT.ASM

    r29 r37  
    1919JUMPS
    2020
    21 Include ..\..\..\Include\asm.inc
    22 include ..\..\..\include\dos\airboot.inc
     21Include ../../../INCLUDE/ASM.INC
     22include ../../../INCLUDE/DOS/AIRBOOT.INC
    2323
    2424                .386p
     
    6060                        db ' detected.', 13, 10, 0
    6161
    62    Include ..\..\..\include\dos\Const.asm
     62   Include ../../../INCLUDE/DOS/CONST.ASM
    6363
    6464AiRBOOTdetected         db 0
     
    343343                ;  DL holds total IPT entries to go
    344344                ;  DH holds current partition number (base 0)
    345                 push    cx es di
     345                push    cx
     346                push    es
     347                push    di
    346348                   mov     ax, ds
    347349                   mov     es, ax        ; ES == DS for now
     
    351353                   mov     di, offset TrackZero+6E00h ; Starting at sector 56
    352354                  CmdLine_RebootToSearchLoop:
    353                       push    si di
     355                      push    si
     356                      push    di
    354357                         add     di, 4   ; Seek to "PartitionName" item
    355358                         mov     cx, bx
    356359                         rep     cmpsb
    357                       pop     di si
     360                      pop     di
     361                      pop     si
    358362                      je      CmdLine_RebootToSearchDone
    359363                      add     di, 34     ; Length of IPT entry
     
    363367                  CmdLine_RebootToSearchDone:
    364368                   mov     bl, ds:[di+17] ; Get "Flags"
    365                 pop     di es cx
     369                pop     di
     370                pop     es
     371                pop     cx
    366372                or      dl, dl           ; If no partitions left -> not found
    367373                jz      CmdLine_RebootToNotFound
Note: See TracChangeset for help on using the changeset viewer.