blob: 1d121c632d9e7ad57a61144161886508d5ccb664 [file] [log] [blame]
Thomas Gleixneref685292007-10-23 22:37:24 +02001#ifndef _ASM_X86_SETUP_H
2#define _ASM_X86_SETUP_H
3
4#define COMMAND_LINE_SIZE 2048
5
Glauber de Oliveira Costa746ef0c2008-01-30 13:31:11 +01006#ifndef __ASSEMBLY__
Glauber Costa2785c8d2008-02-11 17:16:03 -02007
8/* Interrupt control for vSMPowered x86_64 systems */
9void vsmp_init(void);
10
Glauber de Oliveira Costa746ef0c2008-01-30 13:31:11 +010011#ifndef CONFIG_PARAVIRT
12#define paravirt_post_allocator_init() do {} while (0)
13#endif
14#endif /* __ASSEMBLY__ */
15
Thomas Gleixner96a388d2007-10-11 11:20:03 +020016#ifdef __KERNEL__
Thomas Gleixneref685292007-10-23 22:37:24 +020017
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
Thomas Gleixneref685292007-10-23 22:37:24 +020027#endif /* __i386__ */
28
H. Peter Anvinfa76dab2007-10-23 22:37:25 +020029#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
Thomas Gleixneref685292007-10-23 22:37:24 +020035#ifndef __ASSEMBLY__
36#include <asm/bootparam.h>
37
H. Peter Anvinfa76dab2007-10-23 22:37:25 +020038#ifndef _SETUP
39
Thomas Gleixneref685292007-10-23 22:37:24 +020040/*
41 * This is set up by the setup-routine at boot-time
42 */
43extern struct boot_params boot_params;
44
Thomas Gleixneref685292007-10-23 22:37:24 +020045/*
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
Yinghai Lu95a71a42008-06-18 17:27:08 -070051#ifdef __i386__
52
Yinghai Luf0d43102008-05-29 12:56:36 -070053void __init i386_start_kernel(void);
Yinghai Lua9c11822008-06-21 15:39:41 -070054extern void probe_roms(void);
Yinghai Luf0d43102008-05-29 12:56:36 -070055
56extern unsigned long init_pg_tables_start;
Thomas Gleixneref685292007-10-23 22:37:24 +020057extern unsigned long init_pg_tables_end;
58
Jeremy Fitzhardinge102e3b82008-06-25 00:19:09 -040059#else
60void __init x86_64_start_kernel(char *real_mode);
Jeremy Fitzhardingef97013f2008-06-25 00:19:18 -040061void __init x86_64_start_reservations(char *real_mode_data);
62
Thomas Gleixneref685292007-10-23 22:37:24 +020063#endif /* __i386__ */
H. Peter Anvinfa76dab2007-10-23 22:37:25 +020064#endif /* _SETUP */
Thomas Gleixneref685292007-10-23 22:37:24 +020065#endif /* __ASSEMBLY__ */
66#endif /* __KERNEL__ */
67
68#endif /* _ASM_X86_SETUP_H */