summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2011-04-19 06:07:04 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2011-04-19 06:07:04 +0000
commit34174f84dcf9a8c6d06522a383aa7a82b1dfdbb6 (patch)
tree8f1855c53c639cff7627c9bff236463f6c9a2d42 /sys
parente5ff952665a6c4cf5e82c5677d7b2f306f5df718 (diff)
use "orl" to test the return value from an interrupt handler not "orq"
since its an int, not a long. ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/amd64/amd64/vector.S6
1 files changed, 3 insertions, 3 deletions
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 ;\