Changeset 334 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Device/Serial


Ignore:
Timestamp:
Mar 13, 2012, 5:29:34 AM (13 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Serial server DPT flag optimization, remove Serial/IDE specific header on drive scan results, added GNU GPL v2 banner at boot.

Location:
trunk/XTIDE_Universal_BIOS/Src/Device/Serial
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Device/Serial/SerialCommand.asm

    r292 r334  
    5454%include "SerialServer.asm"
    5555
    56 %if SerialCommand_FallThroughToSerialServer_SendReceive <> SerialServer_SendReceive
    57 %error "SerialServer_SendReceive must be the first routine at the top of SerialServer.asm in the Assembly_Library"
     56%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS       
     57    %if SerialCommand_FallThroughToSerialServer_SendReceive <> SerialServer_SendReceive
     58        %error "SerialServer_SendReceive must be the first routine at the top of SerialServer.asm in the Assembly_Library"
     59    %endif
    5860%endif
    5961
     
    163165%include "SerialServerScan.asm"
    164166
    165 %if SerialCommand_FallThroughToSerialServerScan_ScanForServer <> SerialServerScan_ScanForServer
    166 %error "SerialServerScan_ScanForServer must be the first routine at the top of SerialServerScan.asm in the Assembly_Library"
    167 %endif             
     167%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS               
     168    %if SerialCommand_FallThroughToSerialServerScan_ScanForServer <> SerialServerScan_ScanForServer
     169        %error "SerialServerScan_ScanForServer must be the first routine at the top of SerialServerScan.asm in the Assembly_Library"
     170    %endif
     171%endif
    168172
    169173
  • trunk/XTIDE_Universal_BIOS/Src/Device/Serial/SerialDPT.asm

    r277 r334  
    2525; if the floppy support is disabled.
    2626;
    27         mov     al, [es:si+SerialServer_ATA_wFloppyFlagAndType]
    28         or      al, FLGH_DPT_SERIAL_DEVICE
    29         or      byte [di+DPT.bFlagsHigh], al
    30 
    31         test    al, FLGH_DPT_SERIAL_FLOPPY           ; clears CF
    32         jz      .notfloppy
    33         stc     
    34 .notfloppy:     
     27        mov     al, [es:si+SerialServer_ATA_wDriveFlags]
     28        shl     al, 1
     29        mov     byte [di+DPT.bFlagsHigh], al
    3530       
    3631        ret
    3732
     33%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
     34    %if FLGH_DPT_SERIAL_DEVICE != 0x4 || FLGH_DPT_SERIAL_FLOPPY != 0x10 || FLGH_DPT_SERIAL_FLOPPY_TYPE_MASK != 0xe0 || FLGH_DPT_SERIAL_FLOPPY_TYPE_FIELD_POSITION != 5
     35        %error "The serial server passes FLGH values into SerialDPT_Finalize directly.  If the flag positions are changed, corresponding changes will need to be made in the serial server, and likely a version check put in to deal with servers talking to incompatible clients"
     36    %endif
     37%endif
Note: See TracChangeset for help on using the changeset viewer.