summaryrefslogtreecommitdiff
path: root/x86_64/interrupt.S
diff options
context:
space:
mode:
Diffstat (limited to 'x86_64/interrupt.S')
-rw-r--r--x86_64/interrupt.S6
1 files changed, 2 insertions, 4 deletions
diff --git a/x86_64/interrupt.S b/x86_64/interrupt.S
index 6c0b4e02..4b2d0482 100644
--- a/x86_64/interrupt.S
+++ b/x86_64/interrupt.S
@@ -123,11 +123,9 @@ _call_handler:
movq S_REGS,S_ARG3 /* address of interrupted registers as 4th arg */
movl S_IRQ,%eax /* copy irq number */
- shll $2,%eax /* irq * 4 */
- movl EXT(iunit)(%rax),%edi /* get device unit number as 1st arg */
+ movl EXT(iunit)(,%rax,4),%edi /* get device unit number as 1st arg */
- shll $1,%eax /* irq * 8 */
- call *EXT(ivect)(%rax) /* call interrupt handler */
+ call *EXT(ivect)(,%rax,8) /* call interrupt handler */
movl S_IRQ,%ecx
movb EXT(irqinfo)(,%rcx,2),%al /* look up irq_info[irq].trigger */