Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/powerpc Simplify since we know curlwp is in...



details:   https://anonhg.NetBSD.org/src/rev/a397de1fcfb5
branches:  trunk
changeset: 789578:a397de1fcfb5
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Aug 23 06:22:32 2013 +0000

description:
Simplify since we know curlwp is in %r13

diffstat:

 sys/arch/powerpc/powerpc/locore_subr.S |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (22 lines):

diff -r 88c877b3da20 -r a397de1fcfb5 sys/arch/powerpc/powerpc/locore_subr.S
--- a/sys/arch/powerpc/powerpc/locore_subr.S    Fri Aug 23 06:19:46 2013 +0000
+++ b/sys/arch/powerpc/powerpc/locore_subr.S    Fri Aug 23 06:22:32 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore_subr.S,v 1.49 2012/08/01 20:35:52 matt Exp $    */
+/*     $NetBSD: locore_subr.S,v 1.50 2013/08/23 06:22:32 matt Exp $    */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -360,11 +360,7 @@
        streg   %r31, CFRAME_R31(%sp)
 
        GET_CPUINFO(%r7)
-#ifdef PPC_BOOKE
-       mfsprg2 %r30
-#else
-       ldptr   %r30, CI_CURLWP(%r7)
-#endif /* PPC_BOOKE */
+       mr      %r30, %r13              /* curlwp is now in r13 */
 
 #if defined (PPC_OEA) || defined (PPC_OEA64_BRIDGE)
        mfsr    %r10,USER_SR            /* save USER_SR for copyin/copyout */



Home | Main Index | Thread Index | Old Index