浏览代码

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>
David S. Miller 17 年之前
父节点
当前提交
17b6f586b8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/sparc64/kernel/process.c

+ 1 - 1
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 *)
 		rw = (struct reg_window *)
 			(regs->u_regs[UREG_FP] + STACK_BIAS);
 			(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
 	} else
 		global_reg_snapshot[this_cpu].i7 = 0;
 		global_reg_snapshot[this_cpu].i7 = 0;