aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/ppc64/boot/crt0.S1
-rw-r--r--arch/ppc64/boot/main.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/arch/ppc64/boot/crt0.S b/arch/ppc64/boot/crt0.S
index 8bfdeaf3be83..9cc442263939 100644
--- a/arch/ppc64/boot/crt0.S
+++ b/arch/ppc64/boot/crt0.S
@@ -54,5 +54,6 @@ clear_caches:
54 sync 54 sync
55 isync 55 isync
56 56
57 mr r6,r1
57 b start 58 b start
58 59
diff --git a/arch/ppc64/boot/main.c b/arch/ppc64/boot/main.c
index 3304ed34c44b..c1dc876bccab 100644
--- a/arch/ppc64/boot/main.c
+++ b/arch/ppc64/boot/main.c
@@ -131,7 +131,7 @@ static unsigned long try_claim(unsigned long size)
131 return addr; 131 return addr;
132} 132}
133 133
134void start(unsigned long a1, unsigned long a2, void *promptr) 134void start(unsigned long a1, unsigned long a2, void *promptr, void *sp)
135{ 135{
136 unsigned long i; 136 unsigned long i;
137 int len; 137 int len;
@@ -151,7 +151,7 @@ void start(unsigned long a1, unsigned long a2, void *promptr)
151 if (getprop(chosen_handle, "stdin", &stdin, sizeof(stdin)) != 4) 151 if (getprop(chosen_handle, "stdin", &stdin, sizeof(stdin)) != 4)
152 exit(); 152 exit();
153 153
154 printf("\n\rzImage starting: loaded at 0x%lx\n\r", (unsigned long) _start); 154 printf("\n\rzImage starting: loaded at 0x%p (sp: 0x%p)\n\r", _start, sp);
155 155
156 /* 156 /*
157 * The first available claim_base must be above the end of the 157 * The first available claim_base must be above the end of the