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