blob: cf87d6d3675ca236ff81e9fb96af4bbc3997189d [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
Bernhard Walle1ecd2762008-06-20 15:38:22 +020011/* Crashkernel reservation */
12void reserve_crashkernel(void);
13
Glauber de Oliveira Costa746ef0c2008-01-30 13:31:11 +010014#ifndef CONFIG_PARAVIRT
15#define paravirt_post_allocator_init() do {} while (0)
16#endif
17#endif /* __ASSEMBLY__ */
18
Thomas Gleixner96a388d2007-10-11 11:20:03 +020019#ifdef __KERNEL__
Thomas Gleixneref685292007-10-23 22:37:24 +020020
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
Thomas Gleixneref685292007-10-23 22:37:24 +020030#endif /* __i386__ */
31
H. Peter Anvinfa76dab2007-10-23 22:37:25 +020032#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
Thomas Gleixneref685292007-10-23 22:37:24 +020038#ifndef __ASSEMBLY__
39#include <asm/bootparam.h>
40
H. Peter Anvinfa76dab2007-10-23 22:37:25 +020041#ifndef _SETUP
42
Thomas Gleixneref685292007-10-23 22:37:24 +020043/*
44 * This is set up by the setup-routine at boot-time
45 */
46extern struct boot_params boot_params;
47
Thomas Gleixneref685292007-10-23 22:37:24 +020048/*
49 * Do NOT EVER look at the BIOS memory size location.
50 * It does not work on many machines.
51 */
52#define LOWMEMSIZE() (0x9f000)
53
Yinghai Lu95a71a42008-06-18 17:27:08 -070054#ifdef __i386__
55
Yinghai Luf0d43102008-05-29 12:56:36 -070056void __init i386_start_kernel(void);
Yinghai Lua9c11822008-06-21 15:39:41 -070057extern void probe_roms(void);
Yinghai Luf0d43102008-05-29 12:56:36 -070058
59extern unsigned long init_pg_tables_start;
Thomas Gleixneref685292007-10-23 22:37:24 +020060extern unsigned long init_pg_tables_end;
61
Thomas Gleixneref685292007-10-23 22:37:24 +020062#endif /* __i386__ */
H. Peter Anvinfa76dab2007-10-23 22:37:25 +020063#endif /* _SETUP */
Thomas Gleixneref685292007-10-23 22:37:24 +020064#endif /* __ASSEMBLY__ */
65#endif /* __KERNEL__ */
66
67#endif /* _ASM_X86_SETUP_H */