Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 17b6f586 authored by David S. Miller's avatar David S. Miller
Browse files

sparc64: Fix global reg snapshotting on self-cpu.



We were picking %i7 out of the wrong register window
stack slot.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 04d91cb8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;