Searched hist:e91b36efe51b5cbbfe5eb61a653cde5985ae8285 (Results 1 – 1 of 1) sorted by relevance
/linux/arch/arm/ |
H A D | Makefile | diff e91b36efe51b5cbbfe5eb61a653cde5985ae8285 Tue Dec 04 12:56:44 CET 2012 Will Deacon <will.deacon@arm.com> ARM: 7592/1: nommu: prevent generation of kernel unaligned memory accesses
Recent ARMv7 toolchains assume that unaligned memory accesses will not fault and will instead be handled by the processor.
For the nommu case (without an MPU), memory will be treated as strongly-ordered and therefore unaligned accesses may fault regardless of the SCTLR.A setting.
This patch passes -mno-unaligned-access to GCC when compiling for nommu targets, preventing the generation of unaligned memory access in the kernel.
Acked-by: Nicolas Pitre <nico@linaro.org> Tested-by: Jonathan Austin <jonathan.austin@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
|