remove obsolete logic, IRQs 1,2,8,12 have been nothing special for a while

git-svn-id: svn://kolibrios.org@7584 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
CleverMouse 2019-02-21 18:59:13 +00:00
parent a6277573f7
commit f48620ab51

View File

@ -12,19 +12,13 @@ DEBUG equ 1
API_VERSION equ 0x01000100 API_VERSION equ 0x01000100
USE_COM_IRQ equ 0 ;make irq 3 and irq 4 available for PCI devices
IRQ_REMAP equ 0 IRQ_REMAP equ 0
IRQ_LINE equ 0 IRQ_LINE equ 0
;irq 0,1,2,8,12,13 unavailable ;irq 0,13 unavailable
; FEDCBA9876543210 ; FEDCBA9876543210
VALID_IRQ equ 1100111011111000b VALID_IRQ equ 1101111111111110b
ATTCH_IRQ equ 0000111010100000b
if USE_COM_IRQ
ATTCH_IRQ equ 0000111010111000b
end if
CPU_FREQ equ 2600d CPU_FREQ equ 2600d
@ -388,10 +382,6 @@ proc START c, state:dword, cmdline:dword
mov esi, msgInvIRQ mov esi, msgInvIRQ
bt eax, ebx bt eax, ebx
jnc .fail_msg jnc .fail_msg
mov eax, ATTCH_IRQ
mov esi, msgAttchIRQ
bt eax, ebx
jnc .fail_msg
invoke AttachIntHandler, ebx, ac97_irq_VIA, 0 invoke AttachIntHandler, ebx, ac97_irq_VIA, 0
.reg: .reg:
@ -1238,7 +1228,6 @@ sz_sound_srv db 'SOUND',0
msgInit db 'detect hardware...',13,10,0 msgInit db 'detect hardware...',13,10,0
msgFail db 'device not found',13,10,0 msgFail db 'device not found',13,10,0
msgAttchIRQ db 'IRQ line not supported', 13,10, 0
msgInvIRQ db 'IRQ line not assigned or invalid', 13,10, 0 msgInvIRQ db 'IRQ line not assigned or invalid', 13,10, 0
msgPlay db 'start play', 13,10,0 msgPlay db 'start play', 13,10,0
msgStop db 'stop play', 13,10,0 msgStop db 'stop play', 13,10,0