Ignore:
Timestamp:
May 21, 2021, 4:12:01 PM (3 years ago)
Author:
Tomi Tilli
Message:
  • IRQ can no longer be accidentally left enabled for XT-CF
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/IdeControllerMenu.asm

    r601 r607  
    593593    ; Standard ATA controllers, including 8-bit mode
    594594.StandardIdeDevice:
     595    ; Enable IRQ for standard ATA
     596
    595597    lea     ax, [di-ROMVARS.ideVars0+IDEVARS.wBasePort]
    596598    mov     bl, IDEVARS_size
    597599    div     bl
    598     mov     bx, .rgbLowByteOfStdIdeInterfacePorts
     600    push    ax
     601    mov     bx, .rgbDefaultIrqForStdIde         ; Enable interrupt for primary and secondary IDE
     602    xlat
     603    mov     [es:di+IDEVARS.bIRQ-IDEVARS.wBasePort], al
     604    pop     ax
     605    sub     bx, BYTE .rgbDefaultIrqForStdIde - .rgbLowByteOfStdIdeInterfacePorts
    599606    xlat                                        ; DS=CS so no segment override needed
    600607    mov     ah, 1                               ; DEVICE_ATA_*_PORT >> 8
     
    608615    db      DEVICE_ATA_TERTIARY_PORT    & 0FFh
    609616    db      DEVICE_ATA_QUATERNARY_PORT  & 0FFh
     617.rgbDefaultIrqForStdIde:
     618    db      14
     619    db      15
     620    db      0                                   ; These can vary so lets disable by default
     621    db      0
    610622
    611623.NotStandardIdeDevice:
     
    645657    mov     ax, DEVICE_XTIDE_DEFAULT_PORT       ; Defaults for 8-bit XTIDE and XT-CF devices
    646658    mov     bx, DEVICE_XTIDE_DEFAULT_PORTCTRL
     659   
     660    ; XT-CF does not support IRQ so it must be disabled (IRQ setting is not visible for XT-CF)
     661    ; XTIDE does not use IRQs by default
     662    mov     BYTE [es:di+IDEVARS.bIRQ-IDEVARS.wBasePort], 0
    647663
    648664.WriteNonSerial:
Note: See TracChangeset for help on using the changeset viewer.