From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Fri, 21 Jan 2011 18:37:26 +0100 Subject: [U-Boot] [PATCH v3] arm926ejs: timer: Replace bss variable by gdr In-Reply-To: <1295600199-3461-1-git-send-email-hs@denx.de> References: <1291973587-6718-1-git-send-email-hs@denx.de> <1295600199-3461-1-git-send-email-hs@denx.de> Message-ID: <4D39C456.9080003@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 Hi Heiko, Le 21/01/2011 09:56, Heiko Schocher a ?crit : > Reuse the gd->tbl value for timestamp and add gd->lastinc for lastinc bss > values in the arm926ejs timers implementation. > > 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 and added suggestions > from Reinhard Meyer. > > Tested on the arm926ejs mx27 based magnesium board > Tested on the arm926ejs kirkwood based suen3 board > > Signed-off-by: Heiko Schocher > cc: Albert ARIBAUD > cc: Prafulla Wadaskar > cc: Stefano Babic > cc: Reinhard Meyer Applied to u-boot-arm, thanks. Amicalement, -- Albert.