From d07afbc0818370f03ef840419e0bf4f654753ab8 Mon Sep 17 00:00:00 2001 From: sceptillion <33798691+sceptillion@users.noreply.github.com> Date: Sun, 10 Dec 2017 22:41:46 -0800 Subject: initial commit --- asm/macros/function.inc | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 asm/macros/function.inc (limited to 'asm/macros/function.inc') diff --git a/asm/macros/function.inc b/asm/macros/function.inc new file mode 100644 index 0000000..67fb373 --- /dev/null +++ b/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 -- cgit v1.2.3