summaryrefslogtreecommitdiff
path: root/payloads/libpayload/include/arm64/arch/asm.h
blob: ba93a694dcfdbd4b2e3b54801c849cf4ab3d289d (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
/*
 *
 * Copyright 2013 Google Inc.
 *
 */

#ifndef __ARM64_ASM_H
#define __ARM64_ASM_H

#  define ARM64(x...)	x
#  define W(instr)	instr

#define ALIGN .align 2

#define ENDPROC(name) \
	.type name, %function; \
	END(name)

#define ENTRY(name) \
	.section .text.name, "ax", %progbits; \
	.global name; \
	ALIGN; \
	name:

#define END(name) \
	.size name, .-name

#endif	/* __ARM64_ASM_H */