diff options
author | Olaf Hering <olh@suse.de> | 2005-10-28 20:46:50 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-29 01:11:35 -0400 |
commit | 7e658118faa9faf71f8a8295cdaeb7ca71c04672 (patch) | |
tree | 310199b9745eaa292589e1277e3c3f66f46fc881 /arch/ppc64/boot/main.c | |
parent | 67a1b68263d58a3ed5ce024468606044a1561312 (diff) |
[PATCH] ppc64 boot: print firmware provided stackpointer
Show firmware provided stackpointer during boot.
This helps to find the "taboo" areas on the various boards. claim tends to
fail for these memory areas, but some jokers return success anyway.
Use %p to print the load address, its a pointer.
Signed-off-by: Olaf Hering <olh@suse.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc64/boot/main.c')
-rw-r--r-- | arch/ppc64/boot/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 | ||
134 | void start(unsigned long a1, unsigned long a2, void *promptr) | 134 | void 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 |