From 34174f84dcf9a8c6d06522a383aa7a82b1dfdbb6 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Tue, 19 Apr 2011 06:07:04 +0000 Subject: use "orl" to test the return value from an interrupt handler not "orq" since its an int, not a long. ok deraadt@ --- sys/arch/amd64/amd64/vector.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys') diff --git a/sys/arch/amd64/amd64/vector.S b/sys/arch/amd64/amd64/vector.S index b5350c52be8..8b206727251 100644 --- a/sys/arch/amd64/amd64/vector.S +++ b/sys/arch/amd64/amd64/vector.S @@ -1,4 +1,4 @@ -/* $OpenBSD: vector.S,v 1.29 2011/04/16 00:40:56 deraadt Exp $ */ +/* $OpenBSD: vector.S,v 1.30 2011/04/19 06:07:03 dlg Exp $ */ /* $NetBSD: vector.S,v 1.5 2004/06/28 09:13:11 fvdl Exp $ */ /* @@ -482,12 +482,12 @@ IDTVEC(intr_##name##num) ;\ movq %rsp, %rdi ;\ 8: movl %r12d,CPUVAR(ILEVEL) ;\ call *IH_FUN(%rbx) /* call it */ ;\ - orq %rax,%rax /* should it be counted? */ ;\ + orl %eax,%eax /* should it be counted? */ ;\ jz 4f /* no, skip it */ ;\ incq IH_COUNT(%rbx) /* count the intrs */ ;\ cmpl $0,_C_LABEL(intr_shared_edge) ;\ jne 4f /* if no shared edges ... */ ;\ - orq %rax,%rax /* 1 means stop trying */ ;\ + orl %eax,%eax /* 1 means stop trying */ ;\ jns 5f ;\ 4: movq IH_NEXT(%rbx),%rbx /* next handler in chain */ ;\ testq %rbx,%rbx ;\ -- cgit v1.2.3