aboutsummaryrefslogtreecommitdiffstats
path: root/src/arch/arm/include/arch/asm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/arm/include/arch/asm.h')
-rw-r--r--src/arch/arm/include/arch/asm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/arch/arm/include/arch/asm.h b/src/arch/arm/include/arch/asm.h
index 1c3f7a21c..5f3e55f13 100644
--- a/src/arch/arm/include/arch/asm.h
+++ b/src/arch/arm/include/arch/asm.h
@@ -23,9 +23,14 @@
#if defined __arm__
# define ARM(x...) x
# define THUMB(x...)
+# define W(instr) instr
#elif defined __thumb__
# define ARM(x...)
# define THUMB(x...) x
+# define W(instr) instr.w
+# if __COREBOOT_ARM_ARCH__ < 7
+# error thumb mode has not been tested with ARM < v7!
+# endif
#else
# error Not in ARM or thumb mode!
#endif