From: Wolfgang Denk Date: Wed, 30 Jul 2008 00:13:17 +0200 Subject: [U-Boot-Users] [patch 1/1] (V2) Set GD_FLG_RELOC for boards skipping relocation to RAM In-Reply-To: Your message of "Tue, 22 Jul 2008 16:22:11 +0200." <20080722142321.319882523@bohmer.net>> Message-ID: <20080729221317.B99E1248B9@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <20080722142321.319882523@bohmer.net>> you wrote: > If CONFIG_SKIP_RELOCATE_UBOOT is set the flag GD_FLG_RELOC is usually never > set, because relocation to RAM is actually never done by U-boot itself. > However, several pieces of code check if this flag is set at some time. > > So, to make sure this flag is set on boards skipping relocation, this > is added to the initialisation of U-boot at a moment where it is safe > to do so. > > V2: Forgot to add 'return 0;' to reloc_init() routine. > > Signed-off-by: Remy Bohmer > --- > lib_arm/board.c | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The perversity of nature is nowhere better demonstrated by the fact that, when exposed to the same atmosphere, bread becomes hard while crackers become soft.