summaryrefslogtreecommitdiff
path: root/include/common/asm_macros.S
diff options
context:
space:
mode:
Diffstat (limited to 'include/common/asm_macros.S')
-rw-r--r--include/common/asm_macros.S23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/common/asm_macros.S b/include/common/asm_macros.S
index f959eb4f..128259f1 100644
--- a/include/common/asm_macros.S
+++ b/include/common/asm_macros.S
@@ -100,6 +100,29 @@
.endm
/*
+ * Theses macros are used to create function labels for deprecated
+ * APIs. If WARN_DEPRECATED is non zero, the callers of these APIs
+ * will fail to link and cause build failure.
+ */
+#if WARN_DEPRECATED
+ .macro func_deprecated _name
+ func deprecated\_name
+ .endm
+
+ .macro endfunc_deprecated _name
+ endfunc deprecated\_name
+ .endm
+#else
+ .macro func_deprecated _name
+ func \_name
+ .endm
+
+ .macro endfunc_deprecated _name
+ endfunc \_name
+ .endm
+#endif
+
+ /*
* This macro declares an array of 1 or more stacks, properly
* aligned and in the requested section
*/