From a93fef591ad839be2ddbeaf1e4e56bc026a845d4 Mon Sep 17 00:00:00 2001 From: matt Date: Tue, 21 Jun 2011 05:33:04 +0000 Subject: [PATCH] Nuke the mfsprg2 %r3 after sctrapexit. curlwp is already in %r13 and the value fetched to %r3 isn't used. --- sys/arch/powerpc/booke/trap_subr.S | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/arch/powerpc/booke/trap_subr.S b/sys/arch/powerpc/booke/trap_subr.S index b05cb70068be..75c89e8dd635 100644 --- a/sys/arch/powerpc/booke/trap_subr.S +++ b/sys/arch/powerpc/booke/trap_subr.S @@ -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 @@ _C_LABEL(system_call_vector): 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 */