H. Peter Anvin | e5684ec | 2012-05-08 21:22:37 +0300 | [diff] [blame] | 1 | #ifndef ARCH_X86_REALMODE_RM_REALMODE_H |
| 2 | #define ARCH_X86_REALMODE_RM_REALMODE_H |
| 3 | |
| 4 | #ifdef __ASSEMBLY__ |
| 5 | |
| 6 | /* |
| 7 | * 16-bit ljmpw to the real_mode_seg |
| 8 | * |
| 9 | * This must be open-coded since gas will choke on using a |
| 10 | * relocatable symbol for the segment portion. |
| 11 | */ |
| 12 | #define LJMPW_RM(to) .byte 0xea ; .word (to), real_mode_seg |
| 13 | |
| 14 | #endif /* __ASSEMBLY__ */ |
| 15 | |
H. Peter Anvin | 61f5446 | 2012-05-21 00:02:45 -0700 | [diff] [blame] | 16 | /* |
| 17 | * Signature at the end of the realmode region |
| 18 | */ |
| 19 | #define REALMODE_END_SIGNATURE 0x65a22c82 |
| 20 | |
H. Peter Anvin | e5684ec | 2012-05-08 21:22:37 +0300 | [diff] [blame] | 21 | #endif /* ARCH_X86_REALMODE_RM_REALMODE_H */ |