summaryrefslogtreecommitdiff
path: root/include/asm/macros/function.inc
diff options
context:
space:
mode:
authorSeth Barberee <seth.barberee@gmail.com>2021-12-20 17:31:22 -0600
committerGitHub <noreply@github.com>2021-12-20 17:31:22 -0600
commit74b7676ae2d188bdc979e9b337534748c41a5d61 (patch)
tree7838ca3c7546e7167e7a39478884598b448b3ccd /include/asm/macros/function.inc
parent3e84c8e11ba8b2ec8b9006d3fa5e4f87c4fcc8ad (diff)
parent010d641899be44eb7fc5f458d819c332e092d03f (diff)
Merge pull request #86 from mid-kid/master
More disassembly and dependency generation fixes...
Diffstat (limited to 'include/asm/macros/function.inc')
-rw-r--r--include/asm/macros/function.inc29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/asm/macros/function.inc b/include/asm/macros/function.inc
new file mode 100644
index 0000000..67fb373
--- /dev/null
+++ b/include/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