summaryrefslogtreecommitdiff
path: root/berry_fix/payload/asm/macros/function.inc
diff options
context:
space:
mode:
authorultima-soul <akshayjhanji@hotmail.com>2019-04-28 16:55:43 -0700
committerultima-soul <akshayjhanji@hotmail.com>2019-04-28 16:55:43 -0700
commite833d3742325698846eb3d394b41a556a76af711 (patch)
tree68d45add4b819898d3d99064e78a09dbd5ba1c48 /berry_fix/payload/asm/macros/function.inc
parent57603a0d46c785d845a3fa168f94c01dc8b0b253 (diff)
parent523c53506da69eccebb95af1d1cb76803d0fb88f (diff)
Merge branch 'master' into fldeff
Diffstat (limited to 'berry_fix/payload/asm/macros/function.inc')
-rw-r--r--berry_fix/payload/asm/macros/function.inc29
1 files changed, 29 insertions, 0 deletions
diff --git a/berry_fix/payload/asm/macros/function.inc b/berry_fix/payload/asm/macros/function.inc
new file mode 100644
index 000000000..67fb373a8
--- /dev/null
+++ b/berry_fix/payload/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