sparc64: Fix global reg snapshotting on self-cpu.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Monday, August 4, 2008 - 10:59 am

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=17b6f5...
Commit:     17b6f586b8e27914b36c9ed7f3e4d289e6274a80
Parent:     04d91cb8163f7f946e348b2362a6e5dfa5f06b13
Author:     David S. Miller <davem@davemloft.net>
AuthorDate: Mon Jul 28 00:44:29 2008 -0700
Committer:  David S. Miller <davem@davemloft.net>
CommitDate: Mon Jul 28 00:44:29 2008 -0700

    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>
---
 arch/sparc64/kernel/process.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/sparc64/kernel/process.c b/arch/sparc64/kernel/process.c
index 8a9cd3e..0f60547 100644
--- a/arch/sparc64/kernel/process.c
+++ b/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 *)
 			(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;
 
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
sparc64: Fix global reg snapshotting on self-cpu., Linux Kernel Mailing ..., (Mon Aug 4, 10:59 am)