summaryrefslogtreecommitdiff
path: root/asm/macros/function.inc
diff options
context:
space:
mode:
authorDiegoisawesome <diego@domoreaweso.me>2016-11-01 10:56:23 -0500
committerDiegoisawesome <diego@domoreaweso.me>2016-11-01 10:56:23 -0500
commitf09f9cef752c37e3cc0686573c1fdb29da842772 (patch)
tree22bee285750a6739643859eb6afd52be4ded87e1 /asm/macros/function.inc
parent442002dada4183c96b5ec09fcde8486aa5ba29b1 (diff)
parent4db33778ad3faa64d994f46358a28c22c393f7c6 (diff)
Merge remote-tracking branch 'refs/remotes/pret/master'
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 000000000..b109595df
--- /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