summaryrefslogtreecommitdiff
path: root/berry_fix/payload/asm/macros/function.inc
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2019-09-03 15:33:11 -0400
committerGitHub <noreply@github.com>2019-09-03 15:33:11 -0400
commit1f4c88c95243e8d75f25d5b7868c837c47aa578d (patch)
tree0ce1dd280b64c7b3677f22a457952746bb1196e9 /berry_fix/payload/asm/macros/function.inc
parent5d30304f4e9ce26d4061cc3697439588126d6bdc (diff)
Copy Berry Fix MB dism from FR (#777)
* Copy Berry Fix MB dism from FR
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