Module Name:    src
Committed By:   palle
Date:           Sat Jul 26 17:16:41 UTC 2014

Modified Files:
        src/sys/arch/sparc64/sparc64: locore.s

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


To generate a diff of this commit:
cvs rdiff -u -r1.366 -r1.367 src/sys/arch/sparc64/sparc64/locore.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/sparc64/sparc64/locore.s
diff -u src/sys/arch/sparc64/sparc64/locore.s:1.366 src/sys/arch/sparc64/sparc64/locore.s:1.367
--- src/sys/arch/sparc64/sparc64/locore.s:1.366	Thu Jul 24 18:23:28 2014
+++ src/sys/arch/sparc64/sparc64/locore.s	Sat Jul 26 17:16:41 2014
@@ -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
 	

Reply via email to