aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/process.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-07-28 03:44:29 -0400
committerDavid S. Miller <davem@davemloft.net>2008-07-28 03:44:29 -0400
commit17b6f586b8e27914b36c9ed7f3e4d289e6274a80 (patch)
tree6c9683a06476e682ec1f8cbef34b2337ae083e38 /arch/sparc64/kernel/process.c
parent04d91cb8163f7f946e348b2362a6e5dfa5f06b13 (diff)
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/process.c')
-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,
319 319
320 rw = (struct reg_window *) 320 rw = (struct reg_window *)
321 (regs->u_regs[UREG_FP] + STACK_BIAS); 321 (regs->u_regs[UREG_FP] + STACK_BIAS);
322 global_reg_snapshot[this_cpu].i7 = rw->ins[6]; 322 global_reg_snapshot[this_cpu].i7 = rw->ins[7];
323 } else 323 } else
324 global_reg_snapshot[this_cpu].i7 = 0; 324 global_reg_snapshot[this_cpu].i7 = 0;
325 325