commit | a5a737e090e25981e99d69f01400e3a80356581c | [log] [tgz] |
---|---|---|
author | David S. Miller <davem@davemloft.net> | Thu May 10 11:00:46 2012 -0700 |
committer | David S. Miller <davem@davemloft.net> | Thu May 10 11:00:46 2012 -0700 |
tree | 800716c007575b1c316299300e3316d0d94ed243 | |
parent | bc46f9375a286d05f84a9464efc2b7f1f5614ff4 [diff] |
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>