Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 There is no need to save/restore l_privat...



details:   https://anonhg.NetBSD.org/src/rev/20e25c54385a
branches:  trunk
changeset: 807013:20e25c54385a
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Mar 24 21:09:11 2015 +0000

description:
There is no need to save/restore l_private in softint_switch now that
cpu_switchto is fixed

diffstat:

 sys/arch/arm/arm32/cpuswitch.S |  13 ++-----------
 1 files changed, 2 insertions(+), 11 deletions(-)

diffs (41 lines):

diff -r 3fdef8a57b0e -r 20e25c54385a sys/arch/arm/arm32/cpuswitch.S
--- a/sys/arch/arm/arm32/cpuswitch.S    Tue Mar 24 20:24:17 2015 +0000
+++ b/sys/arch/arm/arm32/cpuswitch.S    Tue Mar 24 21:09:11 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpuswitch.S,v 1.88 2015/03/24 07:16:16 matt Exp $      */
+/*     $NetBSD: cpuswitch.S,v 1.89 2015/03/24 21:09:11 skrll Exp $     */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -87,7 +87,7 @@
 #include <arm/asm.h>
 #include <arm/locore.h>
 
-       RCSID("$NetBSD: cpuswitch.S,v 1.88 2015/03/24 07:16:16 matt Exp $")
+       RCSID("$NetBSD: cpuswitch.S,v 1.89 2015/03/24 21:09:11 skrll Exp $")
 
 /* LINTSTUB: include <sys/param.h> */
        
@@ -405,11 +405,6 @@
         */
        mrc     p15, 0, r0, c13, c0, 2
        str     r0, [r2, #(PCB_USER_PID_RW)]
-       /*
-        * Now restore l_private for the softint thread.
-        */
-       ldr     r0, [r5, #(L_PRIVATE)]
-       mcr     p15, 0, r0, c13, c0, 3
 #endif
 
        /* this is an invariant so load before disabling intrs */
@@ -444,10 +439,6 @@
        /*
         * If we've returned, we need to change everything back and return.
         */
-#ifdef _ARM_ARCH_6
-       ldr     r0, [r4, #(L_PRIVATE)]  /* get pinned lwp's l_private */
-       mcr     p15, 0, r0, c13, c0, 3  /* and restore it */
-#endif
        ldr     r2, [r4, #(L_PCB)]      /* get pinned lwp's pcb */
 
 #ifndef __HAVE_UNNESTED_INTRS



Home | Main Index | Thread Index | Old Index