From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Fri, 10 Dec 2010 09:09:21 +0100 Subject: [U-Boot] [PATCH] arm1136: timer: Replace bss variable by gd In-Reply-To: <1291968075-29004-1-git-send-email-hs@denx.de> References: <1291968075-29004-1-git-send-email-hs@denx.de> Message-ID: <4D01E031.3090100@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 Le 10/12/2010 09:01, Heiko Schocher a ?crit : > Reuse the gd->tbl value for timestamp and add gd->lastinc for lastinc bss > values in the arm1136 timer driver for mx31 and omap24xx > > The usage of bss values in drivers before initialisation of bss is forbidden. > In that special case some data in .rel.dyn gets corrupted. > > This patch is similiar to the patch Dirk Behme posted > for the armv7/omap-common/timer.c > > Tested on the mx31 based qong board > > Signed-off-by: Heiko Schocher > cc: Albert ARIBAUD FWIW, Acked-by: Albert ARIBAUD Amicalement, -- Albert.