summaryrefslogtreecommitdiff
path: root/arch/sparc64/kernel
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-07-28 11:44:29 +0400
committerDavid S. Miller <davem@davemloft.net>2008-07-28 11:44:29 +0400
commit17b6f586b8e27914b36c9ed7f3e4d289e6274a80 (patch)
tree6c9683a06476e682ec1f8cbef34b2337ae083e38 /arch/sparc64/kernel
parent04d91cb8163f7f946e348b2362a6e5dfa5f06b13 (diff)
downloadlinux-17b6f586b8e27914b36c9ed7f3e4d289e6274a80.tar.xz
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/kernel')
-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;