Index: sys/arch/sparc64/sparc64/locore.s =================================================================== RCS file: /cvsroot/src/sys/arch/sparc64/sparc64/locore.s,v retrieving revision 1.366 diff -u -r1.366 locore.s --- sys/arch/sparc64/sparc64/locore.s 24 Jul 2014 18:23:28 -0000 1.366 +++ sys/arch/sparc64/sparc64/locore.s 25 Jul 2014 18:19:39 -0000 @@ -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