Ignore:
Timestamp:
Apr 8, 2017, 12:27:09 AM (8 years ago)
Author:
Ben Rietbroek
Message:

Updated debug hooks (debugging) [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

File:
1 edited

Legend:

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

    r102 r111  
    514514; Destroyed: None
    515515PART_HidePartition              Proc Near   Uses ax bx cx dx si di
     516
     517IFDEF   AUX_DEBUG
     518        IF 0
     519        pushf
     520        pusha
     521            push    si
     522            mov     si, offset $+5
     523            jmp     @F
     524            db      10,'PART_HidePartition:',10,0
     525            @@:
     526            call    AuxIO_Print
     527            pop     si
     528            ;~ call    DEBUG_DumpRegisters
     529            ;~ call    AuxIO_DumpParagraph
     530            ;~ call    AuxIO_TeletypeNL
     531        popa
     532        popf
     533        ENDIF
     534ENDIF
     535
    516536        call    PART_GetPartitionPointer      ; Pointer to partition (DL) -> SI
    517537
     
    565585;  do anything else.
    566586PART_MarkFirstGoodPrimary       Proc Near   Uses ax si di
     587
     588IFDEF   AUX_DEBUG
     589        IF 0
     590        pushf
     591        pusha
     592            push    si
     593            mov     si, offset $+5
     594            jmp     @F
     595            db      10,'PART_MarkFirstGoodPrimary:',10,0
     596            @@:
     597            call    AuxIO_Print
     598            pop     si
     599            ;~ call    DEBUG_DumpRegisters
     600            ;~ call    AuxIO_DumpParagraph
     601            ;~ call    AuxIO_TeletypeNL
     602        popa
     603        popf
     604        ENDIF
     605ENDIF
     606
    567607    mov     di, offset PartitionSector+446 ; DS:SI - 1st partitionentry
    568608    ; First action to do: Remove the active flag from every partition
     
    944984;               run boot sector...
    945985PART_StartPartition             Proc Near   Uses ax dx es di
     986
     987IFDEF   AUX_DEBUG
     988        IF 0
     989        pushf
     990        pusha
     991            push    si
     992            mov     si, offset $+5
     993            jmp     @F
     994            db      10,'PART_StartPartition:',10,0
     995            @@:
     996            call    AuxIO_Print
     997            pop     si
     998            ;~ call    DEBUG_DumpRegisters
     999            ;~ call    AuxIO_DumpParagraph
     1000            ;~ call    AuxIO_TeletypeNL
     1001        popa
     1002        popf
     1003        ENDIF
     1004ENDIF
     1005
    9461006    ;
    9471007    ; Local Storage for this much too large function.
     
    21652225;
    21662226PART_IsPrimaryPartition Proc Near  Uses bx cx dx si di ds es
     2227
     2228IFDEF   AUX_DEBUG
     2229        IF 0
     2230        pushf
     2231        pusha
     2232            push    si
     2233            mov     si, offset $+5
     2234            jmp     @F
     2235            db      10,'PART_IsPrimaryPartition:',10,0
     2236            @@:
     2237            call    AuxIO_Print
     2238            pop     si
     2239            ;~ call    DEBUG_DumpRegisters
     2240            ;~ call    AuxIO_DumpParagraph
     2241            ;~ call    AuxIO_TeletypeNL
     2242        popa
     2243        popf
     2244        ENDIF
     2245ENDIF
     2246
    21672247        ; Push LBA address of partition
    21682248        push     bx
Note: See TracChangeset for help on using the changeset viewer.