From: Wolfgang Denk Date: Tue, 25 Jan 2011 21:42:00 +0100 Subject: [U-Boot] [PATCH 04/13] Fix IXP code to work after relocation was added In-Reply-To: <1294062338-21084-5-git-send-email-michael@schwingen.org> References: <1294062338-21084-1-git-send-email-michael@schwingen.org> <1294062338-21084-5-git-send-email-michael@schwingen.org> Message-ID: <20110125204201.015CDB187@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 Dear Michael Schwingen, In message <1294062338-21084-5-git-send-email-michael@schwingen.org> you wrote: > - jump to real flash location after reset before turning off flash mirror > - fix timer system to use HZ == 1000, remove broken interrupt-based code > > Signed-off-by: Michael Schwingen > --- > arch/arm/cpu/ixp/cpu.c | 5 -- > arch/arm/cpu/ixp/start.S | 59 ++-------------- > arch/arm/cpu/ixp/timer.c | 125 +++++++++++++++----------------- > arch/arm/include/asm/arch-ixp/ixp425.h | 5 +- > 4 files changed, 66 insertions(+), 128 deletions(-) ... > -int timer_init (void) > +static ulong timestamp; > +static ulong lastinc; This code is broken. You must not access any variables in BSS segment (like these two) before relocation. 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 If the facts don't fit the theory, change the facts. -- Albert Einstein