SPM: Sort up inline assembly
Purposes:
- Fix IAR toolchain build errors.
- Convert 'extend asm' into 'basic asm' for naked functions.
- Group 'thread call' interface in a section for easy the near jump.
Change-Id: I2eafceddd6d2be1e759163e50b3b6dc007257618
Signed-off-by: Ken Liu <Ken.Liu@arm.com>
diff --git a/secure_fw/include/compiler_ext_defs.h b/secure_fw/include/compiler_ext_defs.h
index fd84de7..9b336a8 100644
--- a/secure_fw/include/compiler_ext_defs.h
+++ b/secure_fw/include/compiler_ext_defs.h
@@ -22,6 +22,10 @@
#define __aligned(x) __attribute__((aligned(x)))
#endif
+#ifndef __used
+#define __used __attribute__((used))
+#endif
+
#endif /* __ARMCC_VERSION __GNUC__ __ICCARM__*/
#endif /* __COMPILER_EXT_DEFS_H__ */