From 4baacc2565ffad22543526152e37af7d1f5efe9b Mon Sep 17 00:00:00 2001 From: hunt Date: Fri, 13 Oct 2006 02:29:41 +0000 Subject: 2006-10-12 Martin Hunt * stack-ppc64.c (__stp_stack_sprint): Declare sp before _sp. --- runtime/ChangeLog | 4 ++++ runtime/stack-ppc64.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'runtime') diff --git a/runtime/ChangeLog b/runtime/ChangeLog index 66519fa8..ea57a874 100644 --- a/runtime/ChangeLog +++ b/runtime/ChangeLog @@ -1,5 +1,9 @@ 2006-10-12 Martin Hunt + * stack-ppc64.c (__stp_stack_sprint): Declare sp before _sp. + +2006-10-12 Martin Hunt + * stack.c: Reorganize and split arch-specific functions to separate files. (_stp_kta): Better checking. diff --git a/runtime/stack-ppc64.c b/runtime/stack-ppc64.c index 0a30bc84..72542bd2 100644 --- a/runtime/stack-ppc64.c +++ b/runtime/stack-ppc64.c @@ -11,9 +11,9 @@ static void __stp_stack_sprint (String str, struct pt_regs *regs, int verbose, i { unsigned long ip, newsp, lr = 0; int count = 0; - unsigned long sp = (unsigned long)_sp; int firstframe = 1; unsigned long *_sp = (unsigned long *)®_SP(regs); + unsigned long sp = (unsigned long)_sp; lr = 0; do { if (sp < KERNELBASE) -- cgit