x86: merge setup_memory_map with e820
[safe/jmp/linux-2.6] / include / asm-x86 / setup.h
1 #ifndef _ASM_X86_SETUP_H
2 #define _ASM_X86_SETUP_H
3
4 #define COMMAND_LINE_SIZE 2048
5
6 #ifndef __ASSEMBLY__
7
8 /* Interrupt control for vSMPowered x86_64 systems */
9 void vsmp_init(void);
10
11 #ifndef CONFIG_PARAVIRT
12 #define paravirt_post_allocator_init()  do {} while (0)
13 #endif
14 #endif /* __ASSEMBLY__ */
15
16 #ifdef __KERNEL__
17
18 #ifdef __i386__
19
20 #include <linux/pfn.h>
21 /*
22  * Reserved space for vmalloc and iomap - defined in asm/page.h
23  */
24 #define MAXMEM_PFN      PFN_DOWN(MAXMEM)
25 #define MAX_NONPAE_PFN  (1 << 20)
26
27 #endif /* __i386__ */
28
29 #define PARAM_SIZE 4096         /* sizeof(struct boot_params) */
30
31 #define OLD_CL_MAGIC            0xA33F
32 #define OLD_CL_ADDRESS          0x020   /* Relative to real mode data */
33 #define NEW_CL_POINTER          0x228   /* Relative to real mode data */
34
35 #ifndef __ASSEMBLY__
36 #include <asm/bootparam.h>
37
38 #ifndef _SETUP
39
40 /*
41  * This is set up by the setup-routine at boot-time
42  */
43 extern struct boot_params boot_params;
44
45 #ifdef __i386__
46 /*
47  * Do NOT EVER look at the BIOS memory size location.
48  * It does not work on many machines.
49  */
50 #define LOWMEMSIZE()    (0x9f000)
51
52 void __init i386_start_kernel(void);
53
54 extern unsigned long init_pg_tables_start;
55 extern unsigned long init_pg_tables_end;
56
57 #endif /* __i386__ */
58 #endif /* _SETUP */
59 #endif /* __ASSEMBLY__ */
60 #endif  /*  __KERNEL__  */
61
62 #endif /* _ASM_X86_SETUP_H */