summaryrefslogtreecommitdiffstats
path: root/firmware/export/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/config.h')
-rw-r--r--firmware/export/config.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 19ee03b4c7..49cd6d610c 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -1005,6 +1005,16 @@ Lyre prototype 1 */
#define ROCKBOX_STRICT_ALIGN 1
#endif
+/*
+ * These macros are for switching on unified syntax in inline assembly.
+ * Older versions of GCC emit assembly in divided syntax with no option
+ * to enable unified syntax.
+ *
+ * FIXME: This needs to be looked at after the toolchain bump
+ */
+#define BEGIN_ARM_ASM_SYNTAX_UNIFIED ".syntax unified\n"
+#define END_ARM_ASM_SYNTAX_UNIFIED ".syntax divided\n"
+
#if defined(CPU_ARM) && defined(__ASSEMBLER__)
.syntax unified
/* ARMv4T doesn't switch the T bit when popping pc directly, we must use BX */