Changeset 411 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs
- Timestamp:
- Apr 26, 2012, 7:41:59 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/AccessDPT.asm
r376 r411 68 68 ALIGN JUMP_ALIGN 69 69 AccessDPT_GetDeviceControlByteToAL: 70 %ifdef MODULE_IRQ 70 71 xor al, al 71 72 test BYTE [di+DPT.bFlagsLow], FLGL_DPT_ENABLE_IRQ … … 73 74 or al, FLG_DEVCONTROL_nIEN ; Disable IRQ 74 75 .EnableDeviceIrq: 76 %else 77 mov al, FLG_DEVCONTROL_nIEN ; Disable IRQ 78 %endif 75 79 ret 76 80 -
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/CreateDPT.asm
r376 r411 74 74 mov al, bh 75 75 and ax, BYTE FLG_DRVNHEAD_DRV ; AL now has Master/Slave bit 76 %ifdef MODULE_IRQ 76 77 cmp [cs:bp+IDEVARS.bIRQ], ah ; Interrupts enabled? 77 78 jz SHORT .StoreFlags ; If not, do not set interrupt flag 78 79 or al, FLGL_DPT_ENABLE_IRQ 79 80 .StoreFlags: 81 %endif 80 82 mov [di+DPT.wFlags], ax 81 83 ; Fall to .StoreAddressing … … 281 283 mov [di+DPT.twLbaSectors+4], bx 282 284 285 %ifdef MODULE_EBIOS 283 286 and BYTE [di+DPT.bFlagsLow], ~MASKL_DPT_ADDRESSING_MODE 284 287 test bx, bx … … 292 295 or BYTE [di+DPT.bFlagsLow], ADDRESSING_MODE_LBA48<<ADDRESSING_MODE_FIELD_POSITION 293 296 .SetLba28AddressingToDPT: 297 %endif 294 298 or BYTE [di+DPT.bFlagsLow], ADDRESSING_MODE_LBA28<<ADDRESSING_MODE_FIELD_POSITION 295 299 ret
Note:
See TracChangeset
for help on using the changeset viewer.