summaryrefslogtreecommitdiff
path: root/include/macros/function.inc
diff options
context:
space:
mode:
authorCameron Hall <camthesaxman@users.noreply.github.com>2018-01-11 13:51:45 -0600
committerGitHub <noreply@github.com>2018-01-11 13:51:45 -0600
commit2b56f43fce75871f2be993d43b483ceefd0bfc0f (patch)
tree6fefa6a95a940c731ce7e551d1bc5c00a2626db0 /include/macros/function.inc
parenta51b95150ba86a3982f613886471626f742aeacd (diff)
parente7672a1aeb5e42d6f4e416ede9f6220122d11743 (diff)
Merge branch 'master' into assert
Diffstat (limited to 'include/macros/function.inc')
-rw-r--r--include/macros/function.inc29
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