Changeset 493 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs


Ignore:
Timestamp:
Dec 21, 2012, 8:44:25 AM (12 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Separated MODULE_8BIT_IDE into the basic part used by XTIDE rev 1 and rev 2 which is PIO based, and MODULE_8BIT_IDE_ADVANCED for JRIDE and XTCF support which requires memory mapping and/or DMA. This allows for creating an 8KB image with boot menu support (but no hotkeys) for the XTIDE rev 1. Cleaned up how we reset the drive translation information, ensuring it is properly set between boot attempt on a primary and secondary drive - as a result we clean it when needed, rather than trying to always keep it clean. Also fixed translation bugs in int13h.asm where I had previously missed converting some MODULE_HOTKEYS into MODULE_DRIVEXLATE.

Location:
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/AccessDPT.asm

    r491 r493  
    104104
    105105
    106 %ifdef MODULE_8BIT_IDE
     106%ifdef MODULE_8BIT_IDE_ADVANCED
    107107;--------------------------------------------------------------------
    108108; AccessDPT_IsThisDeviceXTCF
     
    125125.DeviceIsXTCF:
    126126    ret
    127 %endif ; MODULE_8BIT_IDE
     127%endif ; MODULE_8BIT_IDE_ADVANCED
    128128
    129129
  • trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/BootVars.asm

    r492 r493  
    3232;--------------------------------------------------------------------
    3333BootVars_Initialize:
    34 %ifdef MODULE_8BIT_IDE
     34%ifdef MODULE_8BIT_IDE_ADVANCED
    3535    mov     WORD [es:BOOTVARS.wNextXTCFportToScan], XTCF_BASE_PORT_DETECTION_SEED
    3636%endif
  • trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/CreateDPT.asm

    r473 r493  
    245245    mov     [di+DPT.bIdevarsOffset], bp     ; IDEVARS must start in first 256 bytes of ROM
    246246
    247 %ifdef MODULE_8BIT_IDE
     247%ifdef MODULE_8BIT_IDE_ADVANCED
    248248    call    DetectDrives_DoesIdevarsInCSBPbelongToXTCF
    249249    jne     SHORT .DeviceUsesPortSpecifiedInIDEVARS
     
    251251    ret
    252252.DeviceUsesPortSpecifiedInIDEVARS:
    253 %endif ; MODULE_8BIT_IDE
     253%endif ; MODULE_8BIT_IDE_ADVANCED
    254254
    255255    mov     ax, [cs:bp+IDEVARS.wBasePort]
  • trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/RamVars.asm

    r492 r493  
    9494    mov     [RAMVARS.wNewStackOffset], ax
    9595%endif
    96     ; Fall to .InitializeDriveTranslationAndReturn
    97 
    98 ;--------------------------------------------------------------------
    99 ; .InitializeDriveTranslationAndReturn
    100 ;   Parameters:
    101 ;       DS:     RAMVARS segment
    102 ;   Returns:
    103 ;       Nothing
    104 ;   Corrupts registers:
    105 ;       AX
    106 ;--------------------------------------------------------------------
    107 .InitializeDriveTranslationAndReturn:
     96
     97;; There used to be a DriveXlate_Reset call here.  It isn't necessary, as we reset
     98;; when entering the boot menu and also before transferring control at boot time and
     99;; for ROM boots (in int19h.asm).
     100       
    108101    pop     es
    109 %ifdef MODULE_DRIVEXLATE
    110     jmp     DriveXlate_Reset
    111 %else
    112     ret
    113 %endif
    114 
     102    ret
    115103
    116104;--------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.