blob: e14b6e73d26612ec73f3050f9a9b3c636257460b [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);
54
55extern unsigned long init_pg_tables_start;
Thomas Gleixneref685292007-10-23 22:37:24 +020056extern unsigned long init_pg_tables_end;
57
Thomas Gleixneref685292007-10-23 22:37:24 +020058#endif /* __i386__ */
H. Peter Anvinfa76dab2007-10-23 22:37:25 +020059#endif /* _SETUP */
Thomas Gleixneref685292007-10-23 22:37:24 +020060#endif /* __ASSEMBLY__ */
61#endif /* __KERNEL__ */
62
63#endif /* _ASM_X86_SETUP_H */