From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sullivan.realtime.net (sullivan.realtime.net [205.238.132.226]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 8F87ADDFAA for ; Thu, 22 Mar 2007 02:02:56 +1100 (EST) Received: from sullivan.realtime.net (localhost [127.0.0.1]) by sullivan.realtime.net (8.13.1/8.9.3) with ESMTP id l2LF2rwo008508 for ; Wed, 21 Mar 2007 09:02:53 -0600 (CST) (envelope-from miltonm@sullivan.realtime.net) Received: (from miltonm@localhost) by sullivan.realtime.net (8.13.1/8.12.7/Submit) id l2LF2rfQ008507 for linuxppc-dev@ozlabs.org; Wed, 21 Mar 2007 09:02:53 -0600 (CST) Date: Wed, 21 Mar 2007 09:02:53 -0600 (CST) Subject: [PATCH 3/8] bootwrapper: allow platforms to call library zImage_start Sender: From: Milton Miller To: linuxppc-dev@ozlabs.org Message-Id: In-Reply-To: Cc: Paul Mackerras , david@gibson.dropbear.id.au List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 --- 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