summaryrefslogtreecommitdiff
path: root/asm/macros/function.inc
diff options
context:
space:
mode:
authorsceptillion <33798691+sceptillion@users.noreply.github.com>2017-12-10 22:41:46 -0800
committersceptillion <33798691+sceptillion@users.noreply.github.com>2017-12-10 22:41:46 -0800
commitd07afbc0818370f03ef840419e0bf4f654753ab8 (patch)
tree979a30ff1aa62e4135918eed8b57868571a799a2 /asm/macros/function.inc
initial commit
Diffstat (limited to 'asm/macros/function.inc')
-rw-r--r--asm/macros/function.inc29
1 files changed, 29 insertions, 0 deletions
diff --git a/asm/macros/function.inc b/asm/macros/function.inc
new file mode 100644
index 0000000..67fb373
--- /dev/null
+++ b/asm/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