summaryrefslogtreecommitdiff
path: root/include/macros/function.inc
diff options
context:
space:
mode:
authorProjectRevoTPP <projectrevotpp@hotmail.com>2018-01-11 14:55:51 -0500
committerProjectRevoTPP <projectrevotpp@hotmail.com>2018-01-11 14:55:51 -0500
commit8b41179e9349ac3dcc98f2436be2fa70f5040a33 (patch)
treebe57f4b91ef966980e0ed8cee40cd920bb70c473 /include/macros/function.inc
parent2e713e820ac25a6a68a150c4f07d4865609985f6 (diff)
parente7672a1aeb5e42d6f4e416ede9f6220122d11743 (diff)
merge
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