You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

old_realmode.h 556B

12345678910111213141516171819202122
  1. #ifndef _OLD_REALMODE_H
  2. #define _OLD_REALMODE_H
  3. #include <realmode.h>
  4. #warning "Anything including this header is obsolete and must be rewritten"
  5. /* Just for now */
  6. #define SEGMENT(x) ( virt_to_phys ( x ) >> 4 )
  7. #define OFFSET(x) ( virt_to_phys ( x ) & 0xf )
  8. #define SEGOFF(x) { OFFSET(x), SEGMENT(x) }
  9. /* To make basemem.c compile */
  10. extern int lock_real_mode_stack;
  11. extern char *real_mode_stack;
  12. extern char real_mode_stack_size[];
  13. #define RM_FRAGMENT(name,asm) \
  14. void name ( void ) {} \
  15. extern char name ## _size[];
  16. #endif /* _OLD_REALMODE_H */