| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2014-02-26 | arm: Switch to -mno-unaligned-access when supported by the compiler | Tom Rini | |
| When we tell the compiler to optimize for ARMv7 (and ARMv6 for that matter) it assumes a default of SCTRL.A being cleared and unaligned accesses being allowed and fast at the hardware level. We set this bit and must pass along -mno-unaligned-access so that the compiler will still breakdown accesses and not trigger a data abort. To better help understand the requirements of the project with respect to unaligned memory access, the Documentation/unaligned-memory-access.txt file has been added as doc/README.unaligned-memory-access.txt and is taken from the v3.14-rc1 tag of the kernel. Cc: Albert ARIBAUD <[email protected]> Cc: Mans Rullgard <[email protected]> Signed-off-by: Tom Rini <[email protected]> | |||
| 2012-10-15 | ARM: prevent misaligned array inits | Albert ARIBAUD | |
| Under option -munaligned-access, gcc can perform local char or 16-bit array initializations using misaligned native accesses which will throw a data abort exception. Fix files where these array initializations were unneeded, and for files known to contain such initializations, enforce gcc option -mno-unaligned-access. Signed-off-by: Albert ARIBAUD <[email protected]> [trini: Switch to usign call cc-option for -mno-unaligned-access as Albert had done previously as that's really correct] Signed-off-by: Tom Rini <[email protected]> | |||
