Ignore:
Timestamp:
Nov 19, 2011, 11:18:39 AM (12 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Added printing of COM port and baud rate, when set explicitly by idecfg. Although it eats some bytes, I think it is worth it, since the BIOS will be looking for a server on a particular com port and baud rate, and it could be hard to troubleshoot a mismatch without this information. However, if we become space crunched, this change can be backed out.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectDrives.asm

    r189 r196  
    2121    mov     bp, ROMVARS.ideVars0            ; CS:BP now points to first IDEVARS
    2222.DriveDetectLoop:
    23     mov     si,g_szDetect
     23    mov     si, g_szDetect
     24%ifdef MODULE_SERIAL
     25    cmp     byte [cs:bp+IDEVARS.bDevice], DEVICE_SERIAL_PORT
     26    jnz     .DriveNotSerial
     27    mov     si, g_szDetectCOM
     28.DriveNotSerial:
     29%endif
    2430    call    .DetectDrives_WithIDEVARS       ; Detect Master and Slave
    2531    add     bp, BYTE IDEVARS_size           ; Point to next IDEVARS
     
    3036    jz      .done
    3137    mov     bp, ROMVARS.ideVarsSerialAuto
    32     mov     si,g_szSerial
     38    mov     si, g_szDetectCOMAuto
    3339;;; fall-through       
    3440%else
     
    5258.DetectDrives_WithIDEVARS:
    5359    push    cx
    54        
    55     push    si
     60
     61    push    si     
    5662    mov     ax, g_szMaster
    5763    mov     bh, MASK_DRVNHEAD_SET                               ; Select Master drive
    5864    call    StartDetectionWithDriveSelectByteInBHandStringInAX  ; Detect and create DPT + BOOTNFO
    5965    pop     si
    60        
     66
    6167    mov     ax, g_szSlave
    6268    mov     bh, MASK_DRVNHEAD_SET | FLG_DRVNHEAD_DRV
     
    112118    ;call   ReadAtapiInfoFromDrive      ; Assume CD-ROM
    113119    ;jnc    SHORT _CreateBiosTablesForCDROM
    114     jmp     DetectPrint_DriveNotFound
     120    jmp     short DetectDrives_DriveNotFound
    115121
    116122
     
    130136CreateBiosTablesForHardDisk:
    131137    call    CreateDPT_FromAtaInformation
    132     jc      SHORT .InvalidAtaInfo
     138    jc      SHORT DetectDrives_DriveNotFound
    133139    call    BootInfo_CreateForHardDisk
    134     jmp     DetectPrint_DriveNameFromBootnfoInESBX
    135 .InvalidAtaInfo:
    136     jmp     DetectPrint_DriveNotFound
     140    jmp     short DetectPrint_DriveNameFromBootnfoInESBX
     141
     142;--------------------------------------------------------------------
     143; DetectDrives_DriveNotFound
     144;   Parameters:
     145;       Nothing
     146;   Returns:
     147;       Nothing
     148;   Corrupts registers:
     149;       AX, SI
     150;--------------------------------------------------------------------
     151DetectDrives_DriveNotFound:     
     152    mov     si, g_szNotFound
     153    jmp     BootMenuPrint_NullTerminatedStringFromCSSIandSetCF     
     154
Note: See TracChangeset for help on using the changeset viewer.