From: Tom Rini Date: Mon, 7 Jul 2014 21:38:15 -0400 Subject: [U-Boot] m68k: Fix incorrect memory access on M5235 In-Reply-To: <1404122381-3848-1-git-send-email-vvv444@gmail.com> References: <1404122381-3848-1-git-send-email-vvv444@gmail.com> Message-ID: <20140708013815.GJ29202@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Jun 30, 2014 at 12:59:41PM +0300, Vasili Galka wrote: > The csarX and cscrX registers in the fbcs_t struct are 16-bit for > CONFIG_M5235 and 32-bit wide otherwise. The code in cpu_init.c > accessed them always as 32-bit, effectively creating a wrong memory > access on M5235. Fixed that by choosing out_be16/out_be32 depending > on whether CONFIG_M5235 is defined or not. > > Cc: Jason Jin > Signed-off-by: Vasili Galka Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: