commit | 4834c6408658ad89fa182ef1326787cfbae3c7e3 | [log] [tgz] |
---|---|---|
author | Vasili Galka <vvv444@gmail.com> | Mon Jun 30 12:59:41 2014 +0300 |
committer | Tom Rini <trini@ti.com> | Mon Jul 07 19:47:08 2014 -0400 |
tree | b49fbea0f6a725265bf6973a0080e097453f6bd9 | |
parent | 24f413b700086e224af1e50d9c04ca0b870c3bc5 [diff] |
m68k: Fix incorrect memory access on M5235 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 <Jason.jin@freescale.com> Signed-off-by: Vasili Galka <vvv444@gmail.com>