]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
sparc64: Fix global reg snapshotting on self-cpu.
authorDavid S. Miller <davem@davemloft.net>
Mon, 28 Jul 2008 07:44:29 +0000 (00:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jul 2008 07:44:29 +0000 (00:44 -0700)
We were picking %i7 out of the wrong register window
stack slot.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/process.c

index 8a9cd3e165b9af46818a107b62470554ce8c80a7..0f60547c24d9d2f26bcba8c53a7a48a6160c540c 100644 (file)
@@ -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;