xref: /kvmtool/x86/include/kvm/assembly.h (revision 305d905423d89758f0118db20b10add1ea0ccbbc)
1 #ifndef ASSEMBLY_H_
2 #define ASSEMBLY_H_
3 
4 #define __ALIGN	.p2align 4, 0x90
5 #define ENTRY(name)	\
6 	__ALIGN;	\
7 	.globl name;	\
8 	name:
9 
10 #define ENTRY_END(name)
11 
12 /*
13  * gas produces size override prefix with which
14  * we are unhappy, lets make it hardcoded for
15  * 16 bit mode
16  */
17 #define IRET	.byte 0xcf
18 
19 #endif /* ASSEMBLY_H_ */
20