summaryrefslogtreecommitdiff
path: root/asm/macros/function.inc
blob: 0f4e6720c9c5e4830bc7d549c1b9d64c2049fe50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
	.macro arm_func_start name:req
	.align 2, 0
	.global \name
	.arm
	.type \name, %function
	.endm

	.macro arm_func_end name:req
	.size \name, .-\name
	.endm

	.macro thumb_func_start name:req
	.align 2, 0
	.global \name
	.thumb
	.thumb_func
	.type \name, %function
	.endm

	.macro non_word_aligned_thumb_func_start name:req
	.global \name
	.thumb
	.thumb_func
	.type \name, %function
	.endm

	.macro thumb_func_end name:req
	.size \name, .-\name
	.endm