small fix

git-svn-id: svn://kolibrios.org@3511 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
CleverMouse 2013-05-16 18:45:41 +00:00
parent 4915dae5a6
commit 8573603b63

View File

@ -245,7 +245,19 @@ align 16
call [ebx+IRQH.handler] call [ebx+IRQH.handler]
pop ecx pop ecx
test eax, eax test eax, eax
jnz .found_in_wrong_list jz .try_next_handler
.found_in_wrong_list:
DEBUGF 1,'K : warning: relinking handler from IRQ%d to IRQ%d\n',\
ebp, [esp]
spin_lock_irqsave IrqsList
list_del ebx
pop ebp
lea edx, [irqh_tab+ebp*8]
list_add_tail ebx, edx
spin_unlock_irqrestore IrqsList
jmp .exit
.try_next_irq: .try_next_irq:
inc ebp inc ebp
cmp ebp, 16 cmp ebp, 16
@ -264,17 +276,6 @@ align 16
add esp, 4 add esp, 4
iret iret
.found_in_wrong_list:
DEBUGF 1,'K : warning: relinking handler from IRQ%d to IRQ%d\n',\
ebp, [esp]
spin_lock_irqsave IrqsList
list_del ebx
pop ebp
lea edx, [irqh_tab+ebp*8]
list_add_tail ebx, edx
spin_unlock_irqrestore IrqsList
jmp .exit
align 4 align 4
irqD: irqD:
push eax push eax