8f85b245056236c43e811526b8f74c9b5b83c7eb
[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 /* Crashkernel reservation */
12 void reserve_crashkernel(void);
13
14 #ifndef CONFIG_PARAVIRT
15 #define paravirt_post_allocator_init()  do {} while (0)
16 #endif
17 #endif /* __ASSEMBLY__ */
18
19 #ifdef __KERNEL__
20
21 #ifdef __i386__
22
23 #include <linux/pfn.h>
24 /*
25  * Reserved space for vmalloc and iomap - defined in asm/page.h
26  */
27 #define MAXMEM_PFN      PFN_DOWN(MAXMEM)
28 #define MAX_NONPAE_PFN  (1 << 20)
29
30 #endif /* __i386__ */
31
32 #define PARAM_SIZE 4096         /* sizeof(struct boot_params) */
33
34 #define OLD_CL_MAGIC            0xA33F
35 #define OLD_CL_ADDRESS          0x020   /* Relative to real mode data */
36 #define NEW_CL_POINTER          0x228   /* Relative to real mode data */
37
38 #ifndef __ASSEMBLY__
39 #include <asm/bootparam.h>
40
41 void reserve_standard_io_resources(void);
42 void reserve_initrd(void);
43
44
45 #ifndef _SETUP
46
47 /*
48  * This is set up by the setup-routine at boot-time
49  */
50 extern struct boot_params boot_params;
51
52 /*
53  * Do NOT EVER look at the BIOS memory size location.
54  * It does not work on many machines.
55  */
56 #define LOWMEMSIZE()    (0x9f000)
57
58 #ifdef __i386__
59
60 void __init i386_start_kernel(void);
61 extern void probe_roms(void);
62
63 extern unsigned long init_pg_tables_start;
64 extern unsigned long init_pg_tables_end;
65
66 #endif /* __i386__ */
67 #endif /* _SETUP */
68 #endif /* __ASSEMBLY__ */
69 #endif  /*  __KERNEL__  */
70
71 #endif /* _ASM_X86_SETUP_H */