summaryrefslogtreecommitdiff
path: root/payloads/libpayload/include/arm64/arch/asm.h
blob: de44482793666c84b0cd5283086287cffb7a6341 (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
/*
 * This file is part of the coreboot project.
 *
 * 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 */