diff options
author | danh-arm <dan.handley@arm.com> | 2015-04-09 11:37:01 +0100 |
---|---|---|
committer | danh-arm <dan.handley@arm.com> | 2015-04-09 11:37:01 +0100 |
commit | 9c7eecce726c2089494a4e4b31374a34a34ec7f0 (patch) | |
tree | 345141826138671577efda8e8b8426dd3f039916 /include/common/asm_macros.S | |
parent | cd319142464907e3760129f3e245a325300eb3c3 (diff) | |
parent | 8b779620d3bad024b83650ecfeaafd7b3ae26ccf (diff) |
Merge pull request #284 from kpet/kp/tf-issues-295
Add support to indicate size and end of assembly functions
Diffstat (limited to 'include/common/asm_macros.S')
-rw-r--r-- | include/common/asm_macros.S | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/common/asm_macros.S b/include/common/asm_macros.S index 238fa82a..4dcb5f0c 100644 --- a/include/common/asm_macros.S +++ b/include/common/asm_macros.S @@ -85,9 +85,18 @@ .macro func _name .section .text.\_name, "ax" .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 + /* --------------------------------------------- * Find the type of reset and jump to handler * if present. If the handler is null then it is |