forked from KolibriOS/kolibrios
SB16: correctly reserve ports (broken since #1306)
git-svn-id: svn://kolibrios.org@4961 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
fec4b7a49a
commit
2a2173154c
@ -66,21 +66,22 @@ if DEBUG
|
|||||||
mov esi, msgDSPFound
|
mov esi, msgDSPFound
|
||||||
call SysMsgBoardStr
|
call SysMsgBoardStr
|
||||||
end if
|
end if
|
||||||
; xor eax,eax
|
|
||||||
; mov ebx,[sb_base_port]
|
|
||||||
; lea ecx,[ebx+0xF]
|
|
||||||
xor ebx, ebx
|
xor ebx, ebx
|
||||||
mov ecx, [sb_base_port]
|
mov ecx, [sb_base_port]
|
||||||
lea edx, [ebx+0xF]
|
lea edx, [ecx+0xF]
|
||||||
|
call ReservePortArea ;these ports must be mine !
|
||||||
|
|
||||||
call ReservePortArea ;these ports must be my!
|
|
||||||
if DEBUG
|
|
||||||
dec eax
|
dec eax
|
||||||
jnz @f
|
jnz @f
|
||||||
|
|
||||||
|
if DEBUG
|
||||||
mov esi, msgErrRsrvPorts
|
mov esi, msgErrRsrvPorts
|
||||||
call SysMsgBoardStr
|
call SysMsgBoardStr
|
||||||
@@:
|
|
||||||
end if
|
end if
|
||||||
|
jmp .exit
|
||||||
|
|
||||||
|
@@:
|
||||||
|
|
||||||
call sb_setup ;clock it, etc
|
call sb_setup ;clock it, etc
|
||||||
|
|
||||||
@ -368,8 +369,7 @@ msgErrAtchIRQ db 'failed to attach IRQ',(sb_irq_num+'0'),13,10
|
|||||||
db 'owner',39,'s handler: ',0
|
db 'owner',39,'s handler: ',0
|
||||||
msgSucAtchIRQ db 'succesfully attached IRQ',(sb_irq_num+'0')
|
msgSucAtchIRQ db 'succesfully attached IRQ',(sb_irq_num+'0')
|
||||||
db ' as hardcoded',13,10,0
|
db ' as hardcoded',13,10,0
|
||||||
msgErrRsrvPorts db 'failed to reserve needed ports.',13,10
|
msgErrRsrvPorts db 'failed to reserve needed ports.',13,10,0
|
||||||
db 'Driver may work unstable',13,10,0
|
|
||||||
msgSetVol db 'DEV_SET_MASTERVOL call came',13,10,0
|
msgSetVol db 'DEV_SET_MASTERVOL call came',13,10,0
|
||||||
msgGetVol db 'DEV_GET_MASTERVOL call came',13,10,0
|
msgGetVol db 'DEV_GET_MASTERVOL call came',13,10,0
|
||||||
msgErrDMAsetup db 'failed to setup DMA - bad channel',13,10,0
|
msgErrDMAsetup db 'failed to setup DMA - bad channel',13,10,0
|
||||||
|
Loading…
Reference in New Issue
Block a user