summaryrefslogtreecommitdiffstats
path: root/runtime/stack-ppc64.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/stack-ppc64.c')
-rw-r--r--runtime/stack-ppc64.c2
1 files changed, 1 insertions, 1 deletions
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 *)&REG_SP(regs);
+ unsigned long sp = (unsigned long)_sp;
lr = 0;
do {
if (sp < KERNELBASE)