diff options
author | David S. Miller <davem@davemloft.net> | 2008-07-28 11:44:29 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-28 11:44:29 +0400 |
commit | 17b6f586b8e27914b36c9ed7f3e4d289e6274a80 (patch) | |
tree | 6c9683a06476e682ec1f8cbef34b2337ae083e38 /arch/sparc64/kernel | |
parent | 04d91cb8163f7f946e348b2362a6e5dfa5f06b13 (diff) | |
download | linux-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.c | 2 |
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; |