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 GLOBAL(name) \ 11 .globl name; \ 12 name: 13 14 #define ENTRY_END(name) 15 16 /* 17 * gas produces size override prefix with which 18 * we are unhappy, lets make it hardcoded for 19 * 16 bit mode 20 */ 21 #define IRET .byte 0xcf 22 23 #endif /* ASSEMBLY_H_ */ 24