Changeset 116 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH25h_HDrvID.asm
- Timestamp:
- Feb 26, 2011, 11:55:06 PM (13 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH25h_HDrvID.asm
r88 r116 108 108 ;-------------------------------------------------------------------- 109 109 ; Returns timeout value for drive detection. 110 ; Long timeout is required for detec ing first drive to make sure it is110 ; Long timeout is required for detecting first drive to make sure it is 111 111 ; ready after power-on (ATA specification says up to 31 seconds). 112 112 ; Short timeout is used for additional drives to prevent long boot time … … 123 123 ALIGN JUMP_ALIGN 124 124 AH25h_GetDriveDetectionTimeoutValue: 125 mov cl, B_TIMEOUT_RESET ; Load long timeout (assume first drive) 125 126 cmp BYTE [RAMVARS.bDrvCnt], 0 ; Detecting first drive? 126 je SHORT . GetLongDelayForInitialDetection127 je SHORT .Return 127 128 mov cl, B_TIMEOUT_DRVINFO ; Load short timeout 129 ALIGN JUMP_ALIGN, ret ; This speed optimization may be unnecessary 130 .Return: 128 131 ret 129 ALIGN JUMP_ALIGN130 .GetLongDelayForInitialDetection:131 mov cl, B_TIMEOUT_RESET ; Load long timeout132 ret
Note: See TracChangeset
for help on using the changeset viewer.