summaryrefslogtreecommitdiffstats
path: root/src/arch/i386/include/old_realmode.h
blob: 3dde8c8106096dc6fc371eeb607195af4b7a806f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _OLD_REALMODE_H
#define _OLD_REALMODE_H

#include <realmode.h>

#warning "Anything including this header is obsolete and must be rewritten"

/* Just for now */
#define SEGMENT(x) ( virt_to_phys ( x ) >> 4 )
#define OFFSET(x) ( virt_to_phys ( x ) & 0xf )
#define SEGOFF(x) { OFFSET(x), SEGMENT(x) }

/* To make basemem.c compile */
extern int lock_real_mode_stack;
extern char *real_mode_stack;
extern char real_mode_stack_size[];

#define RM_FRAGMENT(name,asm) \
	void name ( void ) {} \
	extern char name ## _size[];

#endif /* _OLD_REALMODE_H */