forked from rubenslte/android_kernel_samsung_msm8226
ARM: Allow kernel unaligned accesses on ARMv6+ processors
Recent gcc versions generate unaligned accesses by default on ARMv6 and later processors. This patch ensures that the SCTLR.A bit is always cleared on such processors to avoid kernel traping before alignment_init() is called. Change-Id: I2666c83b89c476b56387ca1ab3947bf88c4af432 Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
This commit is contained in:
committed by
Rohit Vaswani
parent
9c244d9f90
commit
1c8ebfea12
@@ -348,8 +348,8 @@ __secondary_data:
|
||||
* r13 = *virtual* address to jump to upon completion
|
||||
*/
|
||||
__enable_mmu:
|
||||
#ifdef CONFIG_ALIGNMENT_TRAP
|
||||
orr r0, r0, #CR_A
|
||||
#if defined(CONFIG_ALIGNMENT_TRAP) && __LINUX_ARM_ARCH__ < 6
|
||||
orr r0, r0, #CR_A
|
||||
#else
|
||||
bic r0, r0, #CR_A
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user