Author: blueswirl Date: 2007-04-16 18:52:52 +0200 (Mon, 16 Apr 2007) New Revision: 125
Modified: openbios-devel/arch/sparc64/vectors.S Log: Fix exception number in crash output
Modified: openbios-devel/arch/sparc64/vectors.S =================================================================== --- openbios-devel/arch/sparc64/vectors.S 2007-04-16 16:47:42 UTC (rev 124) +++ openbios-devel/arch/sparc64/vectors.S 2007-04-16 16:52:52 UTC (rev 125) @@ -210,7 +210,10 @@ bug: /* Dump the exception and its context */ ! Set up CPU state - wrpr %g0, PSTATE_PRIV, %pstate + ! Don't change the global register set or we lose %g1 (exception level) + rdpr %pstate, %g2 + or %g2, PSTATE_PRIV, %g2 + wrpr %g2, %pstate wr %g0, 0, %fprs wrpr %g0, 0x0, %tl