realmode.h 524 B

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