1 #ifndef _OLD_REALMODE_H
2 #define _OLD_REALMODE_H
6 #warning "Anything including this header is obsolete and must be rewritten"
9 #define SEGMENT(x) ( virt_to_phys ( x ) >> 4 )
10 #define OFFSET(x) ( virt_to_phys ( x ) & 0xf )
11 #define SEGOFF(x) { OFFSET(x), SEGMENT(x) }
13 /* To make basemem.c compile */
14 extern int lock_real_mode_stack;
15 extern char *real_mode_stack;
16 extern char real_mode_stack_size[];
18 #define RM_FRAGMENT(name,asm) \
19 void name ( void ) {} \
20 extern char name ## _size[];
22 #endif /* _OLD_REALMODE_H */