Merge branch 'x86/core' into x86/generalize-visws
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / asm-x86 / setup.h
CommitLineData
ef685298
TG
1#ifndef _ASM_X86_SETUP_H
2#define _ASM_X86_SETUP_H
3
4#define COMMAND_LINE_SIZE 2048
5
746ef0cd 6#ifndef __ASSEMBLY__
2785c8d0
GC
7
8/* Interrupt control for vSMPowered x86_64 systems */
9void vsmp_init(void);
10
746ef0cd
GOC
11#ifndef CONFIG_PARAVIRT
12#define paravirt_post_allocator_init() do {} while (0)
13#endif
14#endif /* __ASSEMBLY__ */
15
96a388de 16#ifdef __KERNEL__
ef685298
TG
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
fa76dab9
PA
27#endif /* __i386__ */
28
29#define PARAM_SIZE 4096 /* sizeof(struct boot_params) */
ef685298 30
ef685298 31#define OLD_CL_MAGIC 0xA33F
fa76dab9 32#define OLD_CL_ADDRESS 0x020 /* Relative to real mode data */
ef685298
TG
33#define NEW_CL_POINTER 0x228 /* Relative to real mode data */
34
ef685298
TG
35#ifndef __ASSEMBLY__
36#include <asm/bootparam.h>
37
fa76dab9
PA
38#ifndef _SETUP
39
ef685298
TG
40/*
41 * This is set up by the setup-routine at boot-time
42 */
43extern struct boot_params boot_params;
44
ef685298
TG
45/*
46 * Do NOT EVER look at the BIOS memory size location.
47 * It does not work on many machines.
48 */
49#define LOWMEMSIZE() (0x9f000)
50
95a71a45
YL
51#ifdef __i386__
52
f0d43100 53void __init i386_start_kernel(void);
a9c1182f 54extern void probe_roms(void);
746ef0cd 55
f0d43100
YL
56extern unsigned long init_pg_tables_start;
57extern unsigned long init_pg_tables_end;
ef685298 58
102e3b8d
JF
59#else
60void __init x86_64_start_kernel(char *real_mode);
f97013fd
JF
61void __init x86_64_start_reservations(char *real_mode_data);
62
ef685298 63#endif /* __i386__ */
fa76dab9 64#endif /* _SETUP */
ef685298
TG
65#endif /* __ASSEMBLY__ */
66#endif /* __KERNEL__ */
67
68#endif /* _ASM_X86_SETUP_H */