Skip to content

Commit

Permalink
sparc64: Fix global reg snapshotting on self-cpu.
Browse files Browse the repository at this point in the history
We were picking %i7 out of the wrong register window
stack slot.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jul 28, 2008
1 parent 04d91cb commit 17b6f58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sparc64/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 17b6f58

Please sign in to comment.