From: David S. Miller Date: Thu, 10 May 2012 18:00:46 +0000 (-0700) Subject: sparc64: Do not clobber %g2 in xcall_fetch_glob_regs(). X-Git-Tag: v3.4-rc7~14^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5a737e090e25981e99d69f01400e3a80356581c;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed