[SPARC64]: Drop %gl to 0 before re-enabling PSTATE_IE in rtrap
authorDavid S. Miller <davem@sunset.davemloft.net>
Thu, 23 Feb 2006 00:15:45 +0000 (16:15 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 20 Mar 2006 09:13:57 +0000 (01:13 -0800)
commitfc504928677049f0ad3f1fd4e0bb3908172df8f3
treef55fc6a9061b0eac3f0465df412286caf83b3fbd
parentd7744a09504d5ae84edc8289a02254e1f2102410
[SPARC64]: Drop %gl to 0 before re-enabling PSTATE_IE in rtrap

If we take a window fault, on SUN4V set %gl to zero before we
turn PSTATE_IE back on in %pstate.  Otherwise if we take an
interrupt we'll end up with corrupt register state.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/rtrap.S