blob: 6526cf08b0e4604583b1b3e8c972e0f31fe1b44e [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
4/* Don't touch these, unless you really know what you're doing. */
Linus Torvalds1da177e2005-04-16 15:20:36 -07005#define DEF_SYSSEG 0x1000
Linus Torvalds1da177e2005-04-16 15:20:36 -07006#define DEF_SYSSIZE 0x7F00
7
8/* Internal svga startup constants */
9#define NORMAL_VGA 0xffff /* 80x25 mode */
10#define EXTENDED_VGA 0xfffe /* 80x50 mode */
11#define ASK_VGA 0xfffd /* ask for it at bootup */
12
Cyrill Gorcunov95c4bff2009-01-14 23:37:46 +030013#ifdef __KERNEL__
14
Robert P. J. Daybeb7dd82007-05-09 07:14:03 +020015/* Physical address where kernel should be loaded. */
Vivek Goyaldd0ec162007-01-05 16:36:30 -080016#define LOAD_PHYSICAL_ADDR ((CONFIG_PHYSICAL_START \
17 + (CONFIG_PHYSICAL_ALIGN - 1)) \
Vivek Goyale69f2022006-12-07 02:14:04 +010018 & ~(CONFIG_PHYSICAL_ALIGN - 1))
19
Cyrill Gorcunov95c4bff2009-01-14 23:37:46 +030020#ifdef CONFIG_KERNEL_BZIP2
Alain Knaffae03c492009-01-04 22:46:17 +010021#define BOOT_HEAP_SIZE 0x400000
Cyrill Gorcunov95c4bff2009-01-14 23:37:46 +030022#else /* !CONFIG_KERNEL_BZIP2 */
Alain Knaffae03c492009-01-04 22:46:17 +010023
Alexander van Heukelum7c539762008-04-08 12:54:30 +020024#ifdef CONFIG_X86_64
25#define BOOT_HEAP_SIZE 0x7000
Alexander van Heukelum7c539762008-04-08 12:54:30 +020026#else
27#define BOOT_HEAP_SIZE 0x4000
Alain Knaffae03c492009-01-04 22:46:17 +010028#endif
29
Cyrill Gorcunov95c4bff2009-01-14 23:37:46 +030030#endif /* !CONFIG_KERNEL_BZIP2 */
Alain Knaffae03c492009-01-04 22:46:17 +010031
32#ifdef CONFIG_X86_64
33#define BOOT_STACK_SIZE 0x4000
34#else
Alexander van Heukelum7c539762008-04-08 12:54:30 +020035#define BOOT_STACK_SIZE 0x1000
36#endif
37
Cyrill Gorcunov95c4bff2009-01-14 23:37:46 +030038#endif /* __KERNEL__ */
39
H. Peter Anvin1965aae2008-10-22 22:26:29 -070040#endif /* _ASM_X86_BOOT_H */