Thumb-2: Add some .align statements to the .S files
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / arm / kernel / entry-armv.S
index 83b1da6b7baaa44cbfd220876503b9d755c1acd3..0befd1cabf45ba05e6638bcccebe4f689b1b2a33 100644 (file)
@@ -482,6 +482,9 @@ __und_usr:
        subeq   r4, r2, #4                      @ ARM instr at LR - 4
        subne   r4, r2, #2                      @ Thumb instr at LR - 2
 1:     ldreqt  r0, [r4]
+#ifdef CONFIG_CPU_ENDIAN_BE8
+       reveq   r0, r0                          @ little endian instruction
+#endif
        beq     call_fpe
        @ Thumb instruction
 #if __LINUX_ARM_ARCH__ >= 7
@@ -1062,6 +1065,10 @@ vector_\name:
        ldr     lr, [pc, lr, lsl #2]
        movs    pc, lr                  @ branch to handler in SVC mode
 ENDPROC(vector_\name)
+
+       .align  2
+       @ handler addresses follow this label
+1:
        .endm
 
        .globl  __stubs_start