Module Name: src
Committed By: matt
Date: Tue Jun 21 05:33:05 UTC 2011
Modified Files:
src/sys/arch/powerpc/booke: trap_subr.S
Log Message:
Nuke the mfsprg2 %r3 after sctrapexit. curlwp is already in %r13 and the
value fetched to %r3 isn't used.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/powerpc/booke/trap_subr.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/powerpc/booke/trap_subr.S
diff -u src/sys/arch/powerpc/booke/trap_subr.S:1.5 src/sys/arch/powerpc/booke/trap_subr.S:1.6
--- src/sys/arch/powerpc/booke/trap_subr.S:1.5 Sat Jun 18 06:37:38 2011
+++ src/sys/arch/powerpc/booke/trap_subr.S Tue Jun 21 05:33:04 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: trap_subr.S,v 1.5 2011/06/18 06:37:38 matt Exp $ */
+/* $NetBSD: trap_subr.S,v 1.6 2011/06/21 05:33:04 matt Exp $ */
/*-
* Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -34,7 +34,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-RCSID("$NetBSD: trap_subr.S,v 1.5 2011/06/18 06:37:38 matt Exp $")
+RCSID("$NetBSD: trap_subr.S,v 1.6 2011/06/21 05:33:04 matt Exp $")
.globl _C_LABEL(sctrapexit), _C_LABEL(trapexit), _C_LABEL(intrcall)
@@ -466,7 +466,6 @@
blrl /* syscall(tf) */
_C_LABEL(sctrapexit):
wrteei 0 /* disable interrupts */
- mfsprg2 %r3 /* get curlwp */
lwz %r4, L_MD_ASTPENDING(%r13) /* get ast pending */
cmplwi %r4, 0 /* is there an ast pending */
beq+ trapdone /* nope, proceed to exit */