realmode.h 485 B

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