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