Changeset 612 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers


Ignore:
Timestamp:
May 26, 2021, 1:42:14 PM (3 years ago)
Author:
Krister Nordvall
Message:

Changes:

  • BIOSDRVS builds again (broken since r609). Also removed the last remnants of RESERVE_DIAGNOSTIC_CYLINDER from BIOSDRVS that I missed in r606.
  • Put in a limit on the P-CHS cylinder count in an attempt to improve compatibility with some CF cards that violates the ATA specification. The limit applies only to the BIOS. BIOSDRVS will continue to show the true cylinder count since we might want to add code later to warn the user when encountering incompatible drives like these.
  • Optimized the bug fix in r611.
  • Updated the copyright notices in XTIDECFG and BIOSDRVS.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH8h_HParams.asm

    r606 r612  
    102102AH8h_GetDriveParameters:
    103103    call    AccessDPT_GetLCHStoAXBLBH
    104     call    AH8h_LimitAXtoMaximumLCylinders
     104    call    AtaGeometry_LimitAXtoMaximumLCylinders
    105105    ; Fall to .PackReturnValues
    106106
     
    136136    eSHR_IM bl, FLGH_DPT_SERIAL_FLOPPY_TYPE_FIELD_POSITION
    137137%endif
    138     ret
    139 
    140 
    141 ;--------------------------------------------------------------------
    142 ; AH8h_LimitAXtoMaximumLCylinders
    143 ;   Parameters:
    144 ;       AX:     Number of total L-CHS cylinders (1...1027)
    145 ;   Returns:
    146 ;       AX:     Number of usable L-CHS cylinders (1...1024)
    147 ;   Corrupts registers:
    148 ;       Nothing
    149 ;--------------------------------------------------------------------
    150 AH8h_LimitAXtoMaximumLCylinders:
    151     MIN_U   ax, MAX_LCHS_CYLINDERS
    152138    ret
    153139
Note: See TracChangeset for help on using the changeset viewer.