[PATCH 3/8] bootwrapper: allow platforms to call library zImage_start
Milton Miller
miltonm at bga.com
Thu Mar 22 02:02:53 EST 2007
Some platforms might need to run some code before the zImage start, but
could otherwise use the bss clear and relocation code. Export the
start address strongly as zImage_start_lib.
Signed-off-by: Milton Miller <miltonm at bga.com>
---
Compiles and links with usage, stack set properly.
Index: kernel/arch/powerpc/boot/crt0.S
===================================================================
--- kernel.orig/arch/powerpc/boot/crt0.S 2007-03-19 04:15:03.000000000 -0500
+++ kernel/arch/powerpc/boot/crt0.S 2007-03-19 04:15:03.000000000 -0500
@@ -19,6 +19,8 @@ _zimage_start_opd:
.weak _zimage_start
.globl _zimage_start
_zimage_start:
+ .globl _zimage_start_lib
+_zimage_start_lib:
/* Work out the offset between the address we were linked at
and the address where we're running. */
bl 1f
More information about the Linuxppc-dev
mailing list