realmode.h 388 B

12345678910111213141516
  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. #endif /* ARCH_X86_REALMODE_RM_REALMODE_H */