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

Added more debug hooks [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/partscan.asm

    r111 r117  
    6868        mov     byte ptr [CurIO_Scanning], 0             ; Reset flag due scanning complete
    6969
    70     IFDEF   AUX_DEBUG
    71         ;~ pusha
    72         ;~ call    DEBUG_DumpHidePartTables
    73         ;~ popa
    74     ENDIF
     70IFDEF   AUX_DEBUG
     71        IF 0
     72        pushf
     73        pusha
     74            call    DEBUG_DumpHidePartTables
     75        popa
     76        popf
     77        ENDIF
     78ENDIF
     79
    7580        ; Use X-Reference to sync NewPartitionTable with Hide-Config
    7681        call    PARTSCAN_SyncHideConfigWithXref
    7782
    78     IFDEF   AUX_DEBUG
    79         ;~ pusha
    80         ;~ call    DEBUG_DumpHidePartTables
    81         ;~ popa
    82     ENDIF
     83IFDEF   AUX_DEBUG
     84        IF 0
     85        pushf
     86        pusha
     87        call    DEBUG_DumpHidePartTables
     88        popa
     89        popf
     90        ENDIF
     91ENDIF
    8392
    8493        ; Now we copy the new IPT over the old one...
     
    418427PARTSCAN_CheckThisPartition     Proc Near  Uses di si
    419428
     429        local   PartSystemID:byte, PartTypeFlags:byte
     430        local   PartCRC:word, PartPtr:word
     431
    420432IFDEF   AUX_DEBUG
    421433        IF 0
     
    437449ENDIF
    438450
    439         local   PartSystemID:byte, PartTypeFlags:byte
    440         local   PartCRC:word, PartPtr:word
    441451
    442452        mov     wptr [PartPtr], si          ; Save Pointer to PartitionEntry
     
    512522        add     ax, wptr [CurPartition_Location+0] ; +Partition-Absolute
    513523        adc     dx, wptr [CurPartition_Location+2] ;  sectors
    514         mov     si, offset LVMSector
     524
     525        mov     si, offset [LVMSector]
     526
    515527        call    LVM_SearchForPartition     ; Search for DX:AX partition
     528
    516529        jnc     PCCTP_CheckBootRecord
    517530        ; Check, if volume has driveletter assigned and remember it for later
     
    10781091
    10791092
    1080     IFDEF   AUX_DEBUG
    1081         ;~ pusha
    1082         ;~ mov     al,dl
    1083         ;~ call    AuxIO_TeletypeHexByte
    1084         ;~ call    AuxIO_TeletypeNL
    1085         ;~ popa
    1086     ENDIF
     1093IFDEF   AUX_DEBUG
     1094        IF 0
     1095        pushf
     1096        pusha
     1097            mov     al,dl
     1098            call    AuxIO_TeletypeHexByte
     1099            call    AuxIO_TeletypeNL
     1100        popa
     1101        popf
     1102        ENDIF
     1103ENDIF
    10871104
    10881105
     
    10981115
    10991116    IFDEF   AUX_DEBUG
    1100         ; debug code
    1101         ;~ mov     ax,di
    1102         ;~ call    AuxIO_TeletypeHexWord
    1103         ;~ call    AuxIO_TeletypeNL
     1117        IF 0
     1118        pushf
     1119        pusha
     1120            mov     ax,di
     1121            call    AuxIO_TeletypeHexWord
     1122            call    AuxIO_TeletypeNL
     1123        popa
     1124        popf
     1125        ENDIF
    11041126    ENDIF
    11051127
Note: See TracChangeset for help on using the changeset viewer.