Changeset 316 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h
- Timestamp:
- Mar 11, 2012, 3:56:34 AM (13 years ago)
- google:author:
- gregli@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH0h_HReset.asm
r294 r316 158 158 mov dl, ROMVARS.ideVars0 ; starting Idevars offset 159 159 160 call RamVars_GetIdeControllerCountToCX ; get count of ide controllers 161 jcxz .done ; just in case bIdeCnt is zero (shouldn't be) 160 ; Get count of ALL Idevars structures, not just the ones that are configured. This may seem odd, 161 ; but it catches the .ideVarsSerialAuto structure, which would not be scanned if the count from 162 ; RamVars_GetIdeControllerCountToCX was used. Unused controllers won't make a difference, since no DPT 163 ; will point to them. Performance isn't an issue, as this is a reset operation. 164 ; 165 mov cx, (ROMVARS.ideVarsEnd - ROMVARS.ideVarsBegin) / IDEVARS_size 166 162 167 .loop: 163 168 call FindDPT_ForIdevarsOffsetInDL ; look for the first drive on this controller, if any
Note:
See TracChangeset
for help on using the changeset viewer.