Changeset 525 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h
- Timestamp:
- Mar 14, 2013, 9:45:07 PM (12 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH1Eh_XTCF.asm
r505 r525 112 112 jae SHORT .SetMemoryMappedMode 113 113 114 ; We need to limit block size here. Consider this scenario;115 ; 1. While in PIO mode or memory mapped mode, the drive is set to do116 ; block transfers larger than XTCF_DMA_MODE_MAX_BLOCK_SIZE.117 ; 2. A call is subsequently made to change device mode to DEVICE_8BIT_XTCF_DMA.118 ; 3. The call to AH24h_SetBlockSize fails but the change in device mode has been made.119 120 114 ; Set DMA Mode 121 115 mov BYTE [di+DPT_ATA.bDevice], DEVICE_8BIT_XTCF_DMA 122 116 mov al, [di+DPT_ATA.bBlockSize] 123 MIN_U al, XTCF_DMA_MODE_MAX_BLOCK_SIZE 124 jmp SHORT AH24h_SetBlockSize ; Returns via AH23h_Enable8bitPioMode 117 cmp al, XTCF_DMA_MODE_MAX_BLOCK_SIZE 118 jbe SHORT AH24h_SetBlockSize 119 mov al, XTCF_DMA_MODE_MAX_BLOCK_SIZE 120 jmp SHORT AH24h_SetBlockSize 125 121 126 122 .SetMemoryMappedMode:
Note:
See TracChangeset
for help on using the changeset viewer.