summaryrefslogtreecommitdiff
path: root/berry_fix/payload/asm/macros/function.inc
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2019-04-21 21:54:29 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2019-04-21 21:54:29 -0400
commit1d28c9820f3435b458bc73712f6c5902715efaa7 (patch)
treef59c01912801610ff8bd80dbcb440e64b35ccc3f /berry_fix/payload/asm/macros/function.inc
parent29dc2b2284e61f37b973f9b68dbf7f1db7e01d13 (diff)
Payload is now independent of agbsdk
Are you happy now @luckytyphlosion? Kappa
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