summaryrefslogtreecommitdiffstats
path: root/arch/sparc64
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-07-28 09:44:29 +0200
committerDavid S. Miller <davem@davemloft.net>2008-07-28 09:44:29 +0200
commit17b6f586b8e27914b36c9ed7f3e4d289e6274a80 (patch)
tree6c9683a06476e682ec1f8cbef34b2337ae083e38 /arch/sparc64
parentsparc: Set CONFIG_HAVE_ARCH_TRACEHOOK (diff)
downloadlinux-17b6f586b8e27914b36c9ed7f3e4d289e6274a80.tar.xz
linux-17b6f586b8e27914b36c9ed7f3e4d289e6274a80.zip
sparc64: Fix global reg snapshotting on self-cpu.
We were picking %i7 out of the wrong register window stack slot. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64')
-rw-r--r--arch/sparc64/kernel/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc64/kernel/process.c b/arch/sparc64/kernel/process.c
index 8a9cd3e165b9..0f60547c24d9 100644
--- a/arch/sparc64/kernel/process.c
+++ b/arch/sparc64/kernel/process.c
@@ -319,7 +319,7 @@ static void __global_reg_self(struct thread_info *tp, struct pt_regs *regs,
rw = (struct reg_window *)
(regs->u_regs[UREG_FP] + STACK_BIAS);
- global_reg_snapshot[this_cpu].i7 = rw->ins[6];
+ global_reg_snapshot[this_cpu].i7 = rw->ins[7];
} else
global_reg_snapshot[this_cpu].i7 = 0;