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/spm/include/utilities.h b/secure_fw/spm/include/utilities.h
index aec3ea0..2f27487 100644
--- a/secure_fw/spm/include/utilities.h
+++ b/secure_fw/spm/include/utilities.h
@@ -37,8 +37,8 @@
 /* FixMe: Replace ERROR_MSG() in platform code with a suitable API */
 #define ERROR_MSG(msg) SPMLOG_ERRMSG(msg "\r\n")
 
-/* Preprocessor to reference C MACRO to string in inline asm */
-#define M2S_HELPER(x)  #x
-#define M2S(m)         M2S_HELPER(m)
+/* Stringify preprocessors, no leading underscore. ('STRINGIFY') */
+#define STRINGIFY_EXPAND(x) #x
+#define M2S(m) STRINGIFY_EXPAND(m)
 
 #endif /* __TFM_UTILS_H__ */