aboutsummaryrefslogtreecommitdiff
path: root/el3_payload/asm_macros.S
diff options
context:
space:
mode:
Diffstat (limited to 'el3_payload/asm_macros.S')
-rw-r--r--el3_payload/asm_macros.S22
1 files changed, 22 insertions, 0 deletions
diff --git a/el3_payload/asm_macros.S b/el3_payload/asm_macros.S
new file mode 100644
index 000000000..d02afba2d
--- /dev/null
+++ b/el3_payload/asm_macros.S
@@ -0,0 +1,22 @@
+/*
+ * Copyright (c) 2018, Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+ /*
+ * This macro is used to create a function label.
+ */
+ .macro func _name
+ .type \_name, %function
+ .func \_name
+ \_name:
+ .endm
+
+ /*
+ * This macro is used to mark the end of a function.
+ */
+ .macro endfunc _name
+ .endfunc
+ .size \_name, . - \_name
+ .endm