18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef ARCH_X86_REALMODE_RM_REALMODE_H 38c2ecf20Sopenharmony_ci#define ARCH_X86_REALMODE_RM_REALMODE_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#ifdef __ASSEMBLY__ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci/* 88c2ecf20Sopenharmony_ci * 16-bit ljmpw to the real_mode_seg 98c2ecf20Sopenharmony_ci * 108c2ecf20Sopenharmony_ci * This must be open-coded since gas will choke on using a 118c2ecf20Sopenharmony_ci * relocatable symbol for the segment portion. 128c2ecf20Sopenharmony_ci */ 138c2ecf20Sopenharmony_ci#define LJMPW_RM(to) .byte 0xea ; .word (to), real_mode_seg 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci#endif /* __ASSEMBLY__ */ 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci/* 188c2ecf20Sopenharmony_ci * Signature at the end of the realmode region 198c2ecf20Sopenharmony_ci */ 208c2ecf20Sopenharmony_ci#define REALMODE_END_SIGNATURE 0x65a22c82 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci#endif /* ARCH_X86_REALMODE_RM_REALMODE_H */ 23