Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 Improved the NORMAL_GLOBALS macro i...



details:   https://anonhg.NetBSD.org/src/rev/7da7cc6586ce
branches:  trunk
changeset: 330994:7da7cc6586ce
user:      palle <palle%NetBSD.org@localhost>
date:      Sat Jul 26 17:16:41 2014 +0000

description:
Improved the NORMAL_GLOBALS macro in the sun4u case, so only the relevant bit (AG) in %pstate is affected - ok martin@

diffstat:

 sys/arch/sparc64/sparc64/locore.s |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r ea49cb07a83c -r 7da7cc6586ce sys/arch/sparc64/sparc64/locore.s
--- a/sys/arch/sparc64/sparc64/locore.s Sat Jul 26 16:42:03 2014 +0000
+++ b/sys/arch/sparc64/sparc64/locore.s Sat Jul 26 17:16:41 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.366 2014/07/24 18:23:28 palle Exp $       */
+/*     $NetBSD: locore.s,v 1.367 2014/07/26 17:16:41 palle Exp $       */
 
 /*
  * Copyright (c) 2006-2010 Matthew R. Green
@@ -154,7 +154,9 @@
 2:             
 #endif 
        /* sun4u */
-       wrpr    %g0, PSTATE_KERN, %pstate
+       rdpr     %pstate, \scratch
+       and     \scratch, ~PSTATE_AG, \scratch  ! Alternate Globals (AG) bit set to zero
+       wrpr    %g0, \scratch, %pstate
 3:
        .endm
        



Home | Main Index | Thread Index | Old Index