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/stack-ppc64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/stack-ppc64.c') 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