Ignore:
Timestamp:
Aug 6, 2010, 7:11:04 AM (14 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Correct number of drives is now returned from AH=08h even when it is redirected to foreign BIOS.

File:
1 edited

Legend:

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

    r28 r32  
    22; Project name  :   IDE BIOS
    33; Created date  :   27.9.2007
    4 ; Last update   :   29.7.2010
     4; Last update   :   3.8.2010
    55; Author        :   Tomi Tilli
    66; Description   :   Int 13h function AH=0h, Disk Controller Reset.
    7 
    8 RETRIES_IF_RESET_FAILS      EQU     3
    9 TIMEOUT_BEFORE_RESET_RETRY  EQU     5       ; System timer ticks
    107
    118; Section containing code
     
    8279    call    GetDriveNumberForForeignBiosesToDL
    8380    xor     ah, ah                      ; Disk Controller Reset
    84     pushf                               ; Push flags to simulate INT
    85     cli                                 ; Disable interrupts since INT does that
    86     call    FAR [RAMVARS.fpOldI13h]
    87     sti                                 ; Make sure interrupts are enabled again (some BIOSes fails to enable it)
     81    call    Int13h_CallPreviousInt13hHandler
    8882    jmp     SHORT BackupErrorCodeFromTheRequestedDriveToBH
    8983
Note: See TracChangeset for help on using the changeset viewer.