summaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm/alternative-asm.h
blob: 5ee9340459b8c3c5c9e2e199eff87d4076645a19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef __ASM_ALTERNATIVE_ASM_H
#define __ASM_ALTERNATIVE_ASM_H

#ifdef __ASSEMBLY__

.macro altinstruction_entry orig_offset alt_offset feature orig_len alt_len
	.word \orig_offset - .
	.word \alt_offset - .
	.hword \feature
	.byte \orig_len
	.byte \alt_len
.endm

#endif  /*  __ASSEMBLY__  */

#endif /* __ASM_ALTERNATIVE_ASM_H */