From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Fri, 17 Sep 2010 15:07:47 +0200 Subject: [U-Boot] [PATCH 12/26 v2][NEXT] ARM: add relocation support In-Reply-To: <1284721853-8298-13-git-send-email-hs@denx.de> References: <4C62E8C3.8050006@denx.de> <1284721853-8298-1-git-send-email-hs@denx.de> <1284721853-8298-2-git-send-email-hs@denx.de> <1284721853-8298-3-git-send-email-hs@denx.de> <1284721853-8298-4-git-send-email-hs@denx.de> <1284721853-8298-5-git-send-email-hs@denx.de> <1284721853-8298-6-git-send-email-hs@denx.de> <1284721853-8298-7-git-send-email-hs@denx.de> <1284721853-8298-8-git-send-email-hs@denx.de> <1284721853-8298-9-git-send-email-hs@denx.de> <1284721853-8298-10-git-send-email-hs@denx.de> <1284721853-8298-11-git-send-email-hs@denx.de> <1284721853-8298-12-git-send-email-hs@denx.de> <1284721853-8298-13-git-send-email-hs@denx.de> Message-ID: <4C936823.1060802@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Heiko, Le 17/09/2010 13:10, Heiko Schocher a ?crit : > diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c > index 54519b0..88c6427 100644 > --- a/arch/arm/lib/board.c > +++ b/arch/arm/lib/board.c > @@ -234,6 +246,7 @@ typedef int (init_fnc_t) (void); > > int print_cpuinfo (void); > > +#if defined(CONFIG_SYS_ARM_WITHOUT_RELOC) > init_fnc_t *init_sequence[] = { init_sequence is a constant, not an initialized variable, and thus should have the 'const' qualifier. > @@ -444,6 +457,459 @@ extern void davinci_eth_set_mac_addr (const u_int8_t *addr); > > /* NOTREACHED - no way out of command loop except booting */ > } > +#else > +void __dram_init_banksize(void) > +{ > + gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE; > + gd->bd->bi_dram[0].size = gd->ram_size; > +} > +void dram_init_banksize(void) > + __attribute__((weak, alias("__dram_init_banksize"))); > + > +init_fnc_t *init_sequence[] = { Ditto. Amicalement, -- Albert.