Commit ffcf147f authored by David S. Miller's avatar David S. Miller Committed by Greg Kroah-Hartman

sparc64: Fix global reg snapshotting on self-cpu.

[ Upstream commit 17b6f586 ]

We were picking %i7 out of the wrong register window
stack slot.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent bb059936
......@@ -320,7 +320,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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment