summaryrefslogtreecommitdiffstats
path: root/libgloss/arm/swi.h
diff options
context:
space:
mode:
Diffstat (limited to 'libgloss/arm/swi.h')
-rw-r--r--libgloss/arm/swi.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libgloss/arm/swi.h b/libgloss/arm/swi.h
index 7638dbe4e..0f9313447 100644
--- a/libgloss/arm/swi.h
+++ b/libgloss/arm/swi.h
@@ -1,3 +1,5 @@
+#include "arm.h"
+
/* SWI numbers for RDP (Demon) monitor. */
#define SWI_WriteC 0x0
#define SWI_Write0 0x2
@@ -33,8 +35,8 @@
#else
#define AngelSWI AngelSWI_ARM
#endif
-/* For Thumb-2 code use the BKPT instruction instead of SWI. */
-#ifdef __thumb2__
+/* For thumb only architectures use the BKPT instruction instead of SWI. */
+#ifdef THUMB_V7M_V6M
#define AngelSWIInsn "bkpt"
#define AngelSWIAsm bkpt
#else