summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2008-07-28 19:08:47 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2008-07-28 19:08:47 +0000
commit44a8e90860ab336967b107f0c5fce8f79e7f7dd1 (patch)
tree85c60928f912b555ca77bb6f18b5ba569c5673da /sys/arch/amd64
parent289d6328f9ae7d9c93a8966d961042db962ad948 (diff)
No longer clear ci_want_resched within cpu_switchto(), now that it's done
in the MI code.
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/locore.S6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/arch/amd64/amd64/locore.S b/sys/arch/amd64/amd64/locore.S
index cfb4e2d9850..bcc20ef8ba7 100644
--- a/sys/arch/amd64/amd64/locore.S
+++ b/sys/arch/amd64/amd64/locore.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore.S,v 1.26 2008/06/27 06:03:07 ray Exp $ */
+/* $OpenBSD: locore.S,v 1.27 2008/07/28 19:08:46 miod Exp $ */
/* $NetBSD: locore.S,v 1.13 2004/03/25 18:33:17 drochner Exp $ */
/*
@@ -752,11 +752,9 @@ ENTRY(cpu_switchto)
movq %rdi, %r13
movq %rsi, %r12
- xorq %rax,%rax
- movl %eax,CPUVAR(RESCHED)
-
switch_resume:
#ifdef DIAGNOSTIC
+ xorq %rax,%rax
cmpq %rax,P_WCHAN(%r12)
jne _C_LABEL(switch_error2)
cmpb $SRUN,P_STAT(%r12)