[POWERPC] bootwrapper: Allow platforms to call library zImage_start
authorMilton Miller <miltonm@bga.com>
Wed, 21 Mar 2007 15:02:53 +0000 (09:02 -0600)
committerPaul Mackerras <paulus@samba.org>
Mon, 26 Mar 2007 05:11:20 +0000 (15:11 +1000)
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@bga.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/boot/crt0.S

index 3dc8d8f784998746693a1529e5085cce32eaf024..25ad7453531aaea8526dd8f950bdbd64e10d75ec 100644 (file)
@@ -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