blob: 6ba23dd9fc9216de96b9cb52d1954b9bb7ae2b99 [file] [log] [blame]
H. Peter Anvin1965aae2008-10-22 22:26:29 -07001#ifndef _ASM_X86_BOOT_H
2#define _ASM_X86_BOOT_H
Linus Torvalds1da177e2005-04-16 15:20:36 -07003
Linus Torvalds1da177e2005-04-16 15:20:36 -07004/* Internal svga startup constants */
5#define NORMAL_VGA 0xffff /* 80x25 mode */
6#define EXTENDED_VGA 0xfffe /* 80x50 mode */
7#define ASK_VGA 0xfffd /* ask for it at bootup */
8
Cyrill Gorcunov95c4bff2009-01-14 23:37:46 +03009#ifdef __KERNEL__
10
Robert P. J. Daybeb7dd82007-05-09 07:14:03 +020011/* Physical address where kernel should be loaded. */
Vivek Goyaldd0ec162007-01-05 16:36:30 -080012#define LOAD_PHYSICAL_ADDR ((CONFIG_PHYSICAL_START \
13 + (CONFIG_PHYSICAL_ALIGN - 1)) \
Vivek Goyale69f2022006-12-07 02:14:04 +010014 & ~(CONFIG_PHYSICAL_ALIGN - 1))
15
Cyrill Gorcunov95c4bff2009-01-14 23:37:46 +030016#ifdef CONFIG_KERNEL_BZIP2
Alain Knaffae03c492009-01-04 22:46:17 +010017#define BOOT_HEAP_SIZE 0x400000
Cyrill Gorcunov95c4bff2009-01-14 23:37:46 +030018#else /* !CONFIG_KERNEL_BZIP2 */
Alain Knaffae03c492009-01-04 22:46:17 +010019
Alexander van Heukelum7c539762008-04-08 12:54:30 +020020#ifdef CONFIG_X86_64
21#define BOOT_HEAP_SIZE 0x7000
Alexander van Heukelum7c539762008-04-08 12:54:30 +020022#else
23#define BOOT_HEAP_SIZE 0x4000
Alain Knaffae03c492009-01-04 22:46:17 +010024#endif
25
Cyrill Gorcunov95c4bff2009-01-14 23:37:46 +030026#endif /* !CONFIG_KERNEL_BZIP2 */
Alain Knaffae03c492009-01-04 22:46:17 +010027
28#ifdef CONFIG_X86_64
29#define BOOT_STACK_SIZE 0x4000
30#else
Alexander van Heukelum7c539762008-04-08 12:54:30 +020031#define BOOT_STACK_SIZE 0x1000
32#endif
33
Cyrill Gorcunov95c4bff2009-01-14 23:37:46 +030034#endif /* __KERNEL__ */
35
H. Peter Anvin1965aae2008-10-22 22:26:29 -070036#endif /* _ASM_X86_BOOT_H */