ARM: avoid alignment related control reg writeouts
[pandora-kernel.git] / arch / arm / kernel / entry-header.S
index 9a8531e..5413334 100644 (file)
@@ -37,7 +37,7 @@
        .endm
 
        .macro  alignment_trap, rtemp
-#ifdef CONFIG_ALIGNMENT_TRAP
+#if defined(CONFIG_ALIGNMENT_TRAP) && __LINUX_ARM_ARCH__ < 7
        ldr     \rtemp, .LCcralign
        ldr     \rtemp, [\rtemp]
        mcr     p15, 0, \rtemp, c1, c0