summaryrefslogtreecommitdiff
path: root/include/macros/function.inc
diff options
context:
space:
mode:
authorcamthesaxman <cameronghall@cox.net>2018-01-10 23:20:32 -0600
committercamthesaxman <cameronghall@cox.net>2018-01-10 23:20:32 -0600
commitb5667bd097347c1d3958fa8f9eb6d39788c0ff50 (patch)
tree29aca119bf365256255da97e8e768cd9216688a8 /include/macros/function.inc
parentd4afe49b06a7ef2422839fcd0340c06c6a8e541b (diff)
refactor build system
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