summaryrefslogtreecommitdiff
path: root/berry_fix/payload/asm/macros/function.inc
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2018-12-16 20:17:31 -0500
committerPikalaxALT <pikalaxalt@gmail.com>2018-12-16 20:18:44 -0500
commitf91b71d3955e5df5455ec7a302b45c7f174100bf (patch)
treea5bd99bd61f0af04426b4e334a37695e2139bc8a /berry_fix/payload/asm/macros/function.inc
parentcc84f666554ecfba83d79a29831c978a21a2d3c5 (diff)
Port over berry fix program
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..b109595df
--- /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