1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 2e5684ec4SH. Peter Anvin #ifndef ARCH_X86_REALMODE_RM_REALMODE_H 3e5684ec4SH. Peter Anvin #define ARCH_X86_REALMODE_RM_REALMODE_H 4e5684ec4SH. Peter Anvin 5e5684ec4SH. Peter Anvin #ifdef __ASSEMBLY__ 6e5684ec4SH. Peter Anvin 7e5684ec4SH. Peter Anvin /* 8e5684ec4SH. Peter Anvin * 16-bit ljmpw to the real_mode_seg 9e5684ec4SH. Peter Anvin * 10e5684ec4SH. Peter Anvin * This must be open-coded since gas will choke on using a 11e5684ec4SH. Peter Anvin * relocatable symbol for the segment portion. 12e5684ec4SH. Peter Anvin */ 13e5684ec4SH. Peter Anvin #define LJMPW_RM(to) .byte 0xea ; .word (to), real_mode_seg 14e5684ec4SH. Peter Anvin 15e5684ec4SH. Peter Anvin #endif /* __ASSEMBLY__ */ 16e5684ec4SH. Peter Anvin 1761f54461SH. Peter Anvin /* 1861f54461SH. Peter Anvin * Signature at the end of the realmode region 1961f54461SH. Peter Anvin */ 2061f54461SH. Peter Anvin #define REALMODE_END_SIGNATURE 0x65a22c82 2161f54461SH. Peter Anvin 22e5684ec4SH. Peter Anvin #endif /* ARCH_X86_REALMODE_RM_REALMODE_H */ 23