From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ilko Iliev Date: Tue, 21 Oct 2008 18:00:32 +0200 Subject: [U-Boot] [PATCH] at91: board specific lowlevel_init.S In-Reply-To: <20081021135853.C5D84835694E@gemini.denx.de> References: <48FDDC1C.2080808@ronetix.at> <20081021135853.C5D84835694E@gemini.denx.de> Message-ID: <48FDFCA0.4090608@ronetix.at> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wolfgang Denk wrote: > Dear Ilko Iliev, > > In message <48FDDC1C.2080808@ronetix.at> you wrote: > >> This patch allows to have an at91 board specific lowlevel_init.S >> >> Signed-off-by: Ilko Iliev >> >> index ec6ad5d..7882e89 100644 >> --- a/cpu/arm926ejs/at91/lowlevel_init.S >> +++ b/cpu/arm926ejs/at91/lowlevel_init.S >> @@ -27,7 +27,7 @@ >> #include >> #include >> >> -#ifndef CONFIG_SKIP_LOWLEVEL_INIT >> +#if !defined(CONFIG_SKIP_LOWLEVEL_INIT) && >> !defined(CONFIG_USER_LOWLEVEL_INIT) >> >> .globl lowlevel_init >> lowlevel_init: >> @@ -39,5 +39,5 @@ lowlevel_init: >> mov pc, lr >> >> .ltorg >> - >> -#endif /* CONFIG_SKIP_LOWLEVEL_INIT */ >> + >> +#endif /* !CONFIG_SKIP_LOWLEVEL_INIT && !CONFIG_USER_LOWLEVEL_INIT */ >> > > Maybe instead of adding mor #ifdef'ery here, we can turn > lowlevel_init() into a "weak" function that can be redefined by board > specific code? The lowlevel_init() is an assembler function called from another assembler function and the attribute .weak doesn't work. There are no assembler file in the U-BOOT tree which use weak functions. Do you know how can I make an assembler function weak? best regards, Ilko Iilev