Module Name:    src
Committed By:   skrll
Date:           Tue Mar 24 21:09:11 UTC 2015

Modified Files:
        src/sys/arch/arm/arm32: cpuswitch.S

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


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/sys/arch/arm/arm32/cpuswitch.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/arm/arm32/cpuswitch.S
diff -u src/sys/arch/arm/arm32/cpuswitch.S:1.88 src/sys/arch/arm/arm32/cpuswitch.S:1.89
--- src/sys/arch/arm/arm32/cpuswitch.S:1.88	Tue Mar 24 07:16:16 2015
+++ src/sys/arch/arm/arm32/cpuswitch.S	Tue Mar 24 21:09:11 2015
@@ -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 @@ ENTRY_NP(softint_switch)
 	 */
 	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 @@ ENTRY_NP(softint_switch)
 	/*
 	 * 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

Reply via email to