summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/realmode.h
blob: dc1bba534c142e9b478fd86c10205520be8ce7d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef _ARCH_X86_REALMODE_H
#define _ARCH_X86_REALMODE_H

#include <linux/types.h>
#include <asm/io.h>

/* This must match data at realmode.S */
struct real_mode_header {
	u32	text_start;
	u32	ro_end;
	u32	end;
} __attribute__((__packed__));

extern struct real_mode_header real_mode_header;
extern unsigned char *real_mode_base;

extern unsigned long init_rsp;
extern unsigned long initial_code;
extern unsigned long initial_gs;

extern unsigned char real_mode_blob[];
extern unsigned char real_mode_relocs[];

extern void __init setup_real_mode(void);

#endif /* _ARCH_X86_REALMODE_H */