xref: /OK3568_Linux_fs/kernel/arch/x86/realmode/rm/realmode.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef ARCH_X86_REALMODE_RM_REALMODE_H
3*4882a593Smuzhiyun #define ARCH_X86_REALMODE_RM_REALMODE_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #ifdef __ASSEMBLY__
6*4882a593Smuzhiyun 
7*4882a593Smuzhiyun /*
8*4882a593Smuzhiyun  * 16-bit ljmpw to the real_mode_seg
9*4882a593Smuzhiyun  *
10*4882a593Smuzhiyun  * This must be open-coded since gas will choke on using a
11*4882a593Smuzhiyun  * relocatable symbol for the segment portion.
12*4882a593Smuzhiyun  */
13*4882a593Smuzhiyun #define LJMPW_RM(to)	.byte 0xea ; .word (to), real_mode_seg
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun #endif /* __ASSEMBLY__ */
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun /*
18*4882a593Smuzhiyun  * Signature at the end of the realmode region
19*4882a593Smuzhiyun  */
20*4882a593Smuzhiyun #define REALMODE_END_SIGNATURE	0x65a22c82
21*4882a593Smuzhiyun 
22*4882a593Smuzhiyun #endif /* ARCH_X86_REALMODE_RM_REALMODE_H */
23