Changeset 559 in xtideuniversalbios


Ignore:
Timestamp:
Jun 24, 2013, 2:22:36 PM (11 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • All XT builds now default to 1 controller.
  • Very late initialization handler now waits read command until installing and calling 19h.
Location:
trunk/XTIDE_Universal_BIOS/Src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13hBiosInit.asm

    r553 r559  
    2626
    2727Int13hBiosInit_Handler:
     28    ; Ignore all but read command (assumed to read boot sector)
     29    cmp     ah, READ_SECTORS_INTO_MEMORY
     30    jne     SHORT .MainBiosStillInInitializationMode
     31
    2832    LOAD_BDA_SEGMENT_TO ds, ax
    2933
     
    3337    mov     [BIOS_BOOT_LOADER_INTERRUPT_19h*4+2], cs
    3438    int     BIOS_BOOT_LOADER_INTERRUPT_19h  ; Does not return
     39
     40    ; Main BIOS might reset floppy drives etc. so let's wait longer
     41    ; before installing our INT 19h handler.
     42.MainBiosStillInInitializationMode:
     43    int     TEMPORARY_VECTOR_FOR_SYSTEM_INT13h
     44    retf    2
    3545
    3646
  • trunk/XTIDE_Universal_BIOS/Src/Main.asm

    r556 r559  
    128128    at  ROMVARS.wBootTimeout,   dw  BOOT_MENU_DEFAULT_TIMEOUT
    129129%endif
    130 %ifdef MODULE_8BIT_IDE_ADVANCED
    131     at  ROMVARS.bIdeCnt,        db  2                       ; Number of supported controllers
    132 %else
    133130    at  ROMVARS.bIdeCnt,        db  1
    134 %endif
    135131    at  ROMVARS.bBootDrv,       db  80h                     ; Boot Menu default drive
    136132    at  ROMVARS.bMinFddCnt,     db  0                       ; Do not force minimum number of floppy drives
     
    138134    at  ROMVARS.bIdleTimeout,   db  0                       ; Standby timer disabled by default
    139135
    140     at  ROMVARS.ideVars0+IDEVARS.wBasePort,         dw  DEVICE_XTIDE_DEFAULT_PORT           ; Controller Command Block base port
    141     at  ROMVARS.ideVars0+IDEVARS.wControlBlockPort, dw  DEVICE_XTIDE_DEFAULT_PORTCTRL       ; Controller Control Block base port
    142     at  ROMVARS.ideVars0+IDEVARS.bDevice,           db  DEVICE_8BIT_XTIDE_REV1
     136%ifdef MODULE_8BIT_IDE_ADVANCED
     137    at  ROMVARS.ideVars0+IDEVARS.wBasePort,             dw  DEVICE_XTIDE_DEFAULT_PORT       ; Controller Command Block base port
     138    at  ROMVARS.ideVars0+IDEVARS.bDevice,               db  DEVICE_8BIT_XTCF_PIO8
     139%else
     140    at  ROMVARS.ideVars0+IDEVARS.wBasePort,             dw  DEVICE_XTIDE_DEFAULT_PORT       ; Controller Command Block base port
     141    at  ROMVARS.ideVars0+IDEVARS.wControlBlockPort,     dw  DEVICE_XTIDE_DEFAULT_PORTCTRL   ; Controller Control Block base port
     142    at  ROMVARS.ideVars0+IDEVARS.bDevice,               db  DEVICE_8BIT_XTIDE_REV1
     143%endif
    143144    at  ROMVARS.ideVars0+IDEVARS.drvParamsMaster+DRVPARAMS.wFlags,  db  DISABLE_WRITE_CACHE | FLG_DRVPARAMS_BLOCKMODE | (TRANSLATEMODE_AUTO<<TRANSLATEMODE_FIELD_POSITION)
    144145    at  ROMVARS.ideVars0+IDEVARS.drvParamsSlave+DRVPARAMS.wFlags,   db  DISABLE_WRITE_CACHE | FLG_DRVPARAMS_BLOCKMODE | (TRANSLATEMODE_AUTO<<TRANSLATEMODE_FIELD_POSITION)
    145 
    146 %ifdef MODULE_8BIT_IDE_ADVANCED
    147     at  ROMVARS.ideVars1+IDEVARS.wBasePort,             dw  DEVICE_XTIDE_DEFAULT_PORT       ; Controller Command Block base port
    148     at  ROMVARS.ideVars1+IDEVARS.bDevice,               db  DEVICE_8BIT_XTCF_PIO8
    149 %endif
    150146
    151147    at  ROMVARS.ideVars1+IDEVARS.drvParamsMaster+DRVPARAMS.wFlags,  db  DISABLE_WRITE_CACHE | FLG_DRVPARAMS_BLOCKMODE | (TRANSLATEMODE_AUTO<<TRANSLATEMODE_FIELD_POSITION)
Note: See TracChangeset for help on using the changeset viewer.