From 8fb91c74b2df4134442b01fecaa5f91e3ce2e421 Mon Sep 17 00:00:00 2001 From: yenatch Date: Mon, 19 Oct 2015 09:42:57 -0700 Subject: add event script macros --- asm/macros/function.s | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 asm/macros/function.s (limited to 'asm/macros/function.s') diff --git a/asm/macros/function.s b/asm/macros/function.s new file mode 100644 index 000000000..b109595df --- /dev/null +++ b/asm/macros/function.s @@ -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