Changeset 142


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

Moved the AuxIO initialization to an earlier stage [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

Location:
trunk/bootcode
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/bootcode/airboot.asm

    r141 r142  
    10051005        xor     ax, ax
    10061006        call    FillMemBlock
     1007
     1008; Initialize the com-port for debugging
     1009IFDEF   AUX_DEBUG
     1010        PUSHRF
     1011        ; Init com-port
     1012        call     AuxIO_Init
     1013        ; Hello message
     1014        mov     si, offset [AuxIOHello]
     1015        call    AuxIO_Print
     1016        ; Show Build Info
     1017        call    AuxIO_PrintBuildInfo
     1018        call    AuxIO_TeletypeNL
     1019        POPRF
     1020ENDIF
     1021
     1022; Dump debug information
     1023IFDEF   AUX_DEBUG
     1024    IF 1
     1025    call     DEBUG_Dump1
     1026    ENDIF
     1027ENDIF
    10071028
    10081029; Verify we still got the BIOS disk in DL
  • trunk/bootcode/regular/auxio.asm

    r108 r142  
    4646        jz      AuxIO_Init_NoLogging
    4747
     48        ; Adjust to valid port range
    4849        dec     dl                            ; adjust port-number
    4950        and     dl,03h                        ; 3 is max value
    50 
    51         ; Initialization message
    52         mov     si,offset AuxInitMsg
    53         call    MBR_Teletype
    54 
    55         ; Port number
    56         call    VideoIO_SyncPos
    57         mov     al,dl
    58         inc     al
    59         call    VideoIO_PrintByteDynamicNumber
    60         xor     si,si
    61         call    MBR_TeletypeNL
    6251
    6352        ; Do the initialization
     
    7564;
    7665AuxIO_PrintBuildInfo    Proc    Near    Uses ax cx si di
    77         ; Print header.
    78         mov     si, offset build_info
    79         call    AuxIO_Print
    80 
    81         ; Prepare info in temorary buffer.
    82         mov     si,offset bld_level_date_start
    83         mov     cx,offset bld_level_date_end
    84         sub     cx,si
    85         mov     di,offset Scratch
    86         cld
    87         rep     movsb
    88 
    89         ; Fill spaces until assembler specification.
    90         mov     al,' '
    91         mov     cx,37
    92         rep     stosb
    93 
    94         ; Copy assembler specification.
    95     IFDEF       JWASM
    96         mov     al,'['
    97         stosb
    98         mov     si,offset jwasm_txt
    99     ELSEIFDEF   TASM
    100         mov     al,' '
    101         stosb
    102         mov     al,'['
    103         stosb
    104         mov     si,offset tasm_txt
    105 
    106     ELSEIFDEF   WASM
    107         mov     al,' '
    108         stosb
    109         mov     al,'['
    110         stosb
    111         mov     si,offset wasm_txt
    112     ELSEIFDEF   MASM
    113         mov     al,' '
    114         stosb
    115         mov     al,'['
    116         stosb
    117         mov     si,offset masm_txt
    118     ELSE
    119         mov     al,' '
    120         stosb
    121         mov     al,'['
    122         stosb
    123         mov     si,offset unknown_txt
    124     ENDIF
    125 
    126     AuxIO_PrintBuildInfo_a1:
    127         lodsb
    128         test    al,al
    129         jz      AuxIO_PrintBuildInfo_e1
    130         stosb
    131         jmp     AuxIO_PrintBuildInfo_a1
    132     AuxIO_PrintBuildInfo_e1:
    133         mov     al,']'
    134         stosb
    135 
    136         ; Insert NULL Terminator.
    137         xor     al,al
    138         stosb
    139 
    140         ; Print Info.
    141         mov     si, offset Scratch
    142         call    AuxIO_Print
    143         call    AuxIO_TeletypeNL
    14466
    14567        ; OS/2 BLDLEVEL information.
     
    435357
    436358
    437 AuxIOHello  db 10,10,10,10,10,'AiR-BOOT com-port debugging',10,0
    438 
    439 
     359AuxIOHello  db 10,10,10,'<<<<< AiR-BOOT SERIAL DEBUGGER ACTIVE >>>>>',10,0
  • trunk/bootcode/regular/debug.asm

    r127 r142  
    908908        pusha
    909909
    910         ; Hello message
    911         mov     si, offset AuxIOHello
    912         call    AuxIO_Print
    913 
    914         ; Build Info
    915         ;~ mov     si, offset BUILD_DATE
    916         ;~ call    AuxIO_Print
    917         call    AuxIO_PrintBuildInfo
    918 
    919         ; Start new line
    920         call    AuxIO_TeletypeNL
    921         ;~ call    AuxIO_TeletypeNL
    922 
    923910        ;~ call    DEBUG_DumpHidePartTables
    924911        ;~ call    DEBUG_CheckMath
  • trunk/bootcode/regular/other.asm

    r141 r142  
    9191IFDEF   AUX_DEBUG
    9292        IF 1
    93         DBG_TEXT_OUT_AUX    'PRECRAP_Main'
     93        DBG_TEXT_OUT_AUX    'PRECRAP_Main:'
    9494        PUSHRF
    9595            ;~ call    DEBUG_DumpRegisters
     
    158158        call    VideoIO_PrintBuildInfo
    159159
    160     IFDEF   AUX_DEBUG
    161         ; Initialize the com-port for debugging
    162         call     AuxIO_Init
    163     ENDIF
     160; Show message if com-port debugging is active
     161IFDEF   AUX_DEBUG
     162        ; Don't show message if com-port debugging is not active
     163        mov     dx, [BIOS_AuxParms]
     164        test    dl, dl
     165        jz      @F
     166
     167        ; Show initialization message
     168        mov     si, offset AuxInitMsg
     169        call    MBR_Teletype
     170
     171        ; Sync output position
     172        call    VideoIO_SyncPos
     173
     174        ; Show port number
     175        mov     al, dl
     176        call    VideoIO_PrintByteDynamicNumber
     177        xor     si, si
     178        call    MBR_TeletypeNL
     179    @@:
     180ENDIF
    164181
    165182        xor     si,si
     
    181198        ;! was loaded from a disk where the MBR cannot be written !
    182199        ;!
    183 
    184 
    185 IFDEF   AUX_DEBUG
    186     IF 1
    187     call     DEBUG_Dump1
    188     ENDIF
    189 ENDIF
    190200
    191201
Note: See TracChangeset for help on using the changeset viewer.