Thumb-2: Implementation of the unified start-up and exceptions code
[linux-3.10.git] / arch / arm / include / asm / assembler.h
index 15f8a09..1acd1da 100644 (file)
 #endif
 #endif
        .endm
+
+#ifdef CONFIG_THUMB2_KERNEL
+       .macro  setmode, mode, reg
+       mov     \reg, #\mode
+       msr     cpsr_c, \reg
+       .endm
+#else
+       .macro  setmode, mode, reg
+       msr     cpsr_c, #\mode
+       .endm
+#endif