From: David S. Miller Date: Mon, 29 Mar 2010 20:08:52 +0000 (-0700) Subject: sparc64: Properly truncate pt_regs framepointer in perf callback. X-Git-Tag: v2.6.34-rc3~10^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e8307ecaf9f8c8b5b3b22145021204c4e73114a;p=pandora-kernel.git sparc64: Properly truncate pt_regs framepointer in perf callback. For 32-bit processes, we save the full 64-bits of the regs in pt_regs. But unlike when the userspace actually does load and store instructions, the top 32-bits don't get automatically truncated by the cpu in kernel mode (because the kernel doesn't execute with PSTATE_AM address masking enabled). So we have to do it by hand. Reported-by: Frederic Weisbecker Signed-off-by: David S. Miller --- Reading git-diff-tree failed