From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Herring Date: Wed, 15 May 2013 14:56:12 -0500 Subject: [U-Boot] [PATCH 06/10] ARM: highbank: avoid bss write in timer_init In-Reply-To: <1368647776-12940-1-git-send-email-robherring2@gmail.com> References: <1368647776-12940-1-git-send-email-robherring2@gmail.com> Message-ID: <1368647776-12940-6-git-send-email-robherring2@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Rob Herring The timer_init function is called before relocation and writes to bss data were corrupting relocation data. Fix this by removing the call to reset_timer_masked. The initial timer count should be 0 or near 0 anyway, so initializing the variables are not needed. Signed-off-by: Rob Herring --- arch/arm/cpu/armv7/highbank/timer.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/cpu/armv7/highbank/timer.c b/arch/arm/cpu/armv7/highbank/timer.c index d93de1e..832c012 100644 --- a/arch/arm/cpu/armv7/highbank/timer.c +++ b/arch/arm/cpu/armv7/highbank/timer.c @@ -46,8 +46,6 @@ int timer_init(void) writel(SYSTIMER_EN | SYSTIMER_32BIT | SYSTIMER_PRESC_256, &systimer_base->timer0control); - reset_timer_masked(); - return 0; } -- 1.8.1.2