diff options
author | Cameron Hall <camthesaxman@users.noreply.github.com> | 2018-01-11 13:49:54 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-11 13:49:54 -0600 |
commit | e7672a1aeb5e42d6f4e416ede9f6220122d11743 (patch) | |
tree | 8500f80360da733e7fb8105820d03eb0cd558d34 /include/macros/function.inc | |
parent | 4ffcd640b3c7962ba918b544a5a7474198e1e029 (diff) | |
parent | 4763fccf6dae7ee1bf9f40973fce5934076a9ee8 (diff) |
Merge pull request #520 from camthesaxman/makefile
refactor build system
Diffstat (limited to 'include/macros/function.inc')
-rw-r--r-- | include/macros/function.inc | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/macros/function.inc b/include/macros/function.inc new file mode 100644 index 000000000..67fb373a8 --- /dev/null +++ b/include/macros/function.inc @@ -0,0 +1,29 @@ + .macro arm_func_start name + .align 2, 0 + .global \name + .arm + .type \name, function + .endm + + .macro arm_func_end name + .size \name, .-\name + .endm + + .macro thumb_func_start name + .align 2, 0 + .global \name + .thumb + .thumb_func + .type \name, function + .endm + + .macro non_word_aligned_thumb_func_start name + .global \name + .thumb + .thumb_func + .type \name, function + .endm + + .macro thumb_func_end name + .size \name, .-\name + .endm |