Ignore:
Timestamp:
Apr 27, 2013, 5:30:50 PM (11 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • CREATE_COMPATIBLE_DPT is now MODULE_COMPATIBLE_TABLES.
  • DPTs pointed by INT 41h and INT 46h are now swapped when swapping drives 81h and 80h.
  • Block mode commands are no longer used when block size is set to 1 with AH=24h.
File:
1 edited

Legend:

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

    r549 r550  
    128128    or      [di+DPT.bFlagsLow], cl  ; Shift count and addressing mode
    129129    mov     [di+DPT.wPchsHeadsAndSectors], bx
    130 
    131 %ifdef MODULE_EBIOS
     130%ifdef MODULE_COMPATIBLE_TABLES OR MODULE_EBIOS
    132131    ; Store P-Cylinders here for Compatible DPTs when FLGL_DPT_LBA is not set
    133132    ; or when drive has over 15,482,880 sectors
    134133    mov     [di+DPT.wPchsCylinders], ax
     134%endif
     135
     136%ifdef MODULE_EBIOS
    135137    test    cl, FLGL_DPT_LBA
    136138    jz      SHORT .NoLbaSoNoEBIOS
     
    188190.NoLbaSoNoEBIOS:
    189191%endif ; MODULE_EBIOS
    190     ; Fall to .StoreBlockMode
    191 
    192 ;--------------------------------------------------------------------
    193 ; .StoreBlockMode
    194 ;   Parameters:
    195 ;       DS:DI:  Ptr to Disk Parameter Table
    196 ;       ES:SI:  Ptr to 512-byte ATA information read from the drive
    197 ;       CS:BP:  Ptr to IDEVARS for the controller
    198 ;   Returns:
    199 ;       Nothing
    200 ;   Corrupts registers:
    201 ;       Nothing
    202 ;--------------------------------------------------------------------
    203 .StoreBlockMode:
    204     cmp     BYTE [es:si+ATA1.bBlckSize], 1  ; Max block size in sectors
    205     jbe     SHORT .BlockModeTransfersNotSupported
    206     or      BYTE [di+DPT.bFlagsHigh], FLGH_DPT_BLOCK_MODE_SUPPORTED
    207 .BlockModeTransfersNotSupported:
    208192    ; Fall to .StoreDeviceSpecificParameters
    209193
Note: See TracChangeset for help on using the changeset viewer.