David S. Miller a5a737e090 sparc64: Do not clobber %g2 in xcall_fetch_glob_regs().
%g2 is meant to hold the CPUID number throughout this routine, since
at the very beginning, and at the very end, we use %g2 to calculate
indexes into per-cpu arrays.

However we erroneously clobber it in order to hold the %cwp register
value mid-stream.

Fix this code to use %g3 for the %cwp read and related calulcations
instead.

Reported-by: Meelis Roos <mroos@linux.ee>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-05-10 11:00:46 -07:00
..
2012-03-28 18:30:03 +01:00
2011-11-02 16:06:58 -07:00
2012-03-20 21:48:30 +08:00
2008-05-20 00:33:44 -07:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2011-06-07 16:06:34 -07:00
2011-06-07 16:06:34 -07:00
2008-05-20 00:33:44 -07:00
2011-05-25 08:39:13 -07:00
2012-03-28 18:30:03 +01:00
2008-07-17 21:38:01 -07:00
2008-05-20 00:33:44 -07:00