xref: /kernel/linux/linux-6.6/arch/x86/realmode/rm/realmode.h (revision 62306a36)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/arch/x86/realmode/rm/
162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef ARCH_X86_REALMODE_RM_REALMODE_H
362306a36Sopenharmony_ci#define ARCH_X86_REALMODE_RM_REALMODE_H
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci#ifdef __ASSEMBLY__
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci/*
862306a36Sopenharmony_ci * 16-bit ljmpw to the real_mode_seg
962306a36Sopenharmony_ci *
1062306a36Sopenharmony_ci * This must be open-coded since gas will choke on using a
1162306a36Sopenharmony_ci * relocatable symbol for the segment portion.
1262306a36Sopenharmony_ci */
1362306a36Sopenharmony_ci#define LJMPW_RM(to)	.byte 0xea ; .word (to), real_mode_seg
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ci#endif /* __ASSEMBLY__ */
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci/*
1862306a36Sopenharmony_ci * Signature at the end of the realmode region
1962306a36Sopenharmony_ci */
2062306a36Sopenharmony_ci#define REALMODE_END_SIGNATURE	0x65a22c82
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ci#endif /* ARCH_X86_REALMODE_RM_REALMODE_H */
23

Indexes created Thu Nov 07 10:32:03 CST 2024