1 #ifndef _ASM_X86_BOOT_H
2 #define _ASM_X86_BOOT_H
4 /* 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 */
11 #include <asm/page_types.h>
13 /* Physical address where kernel should be loaded. */
14 #define LOAD_PHYSICAL_ADDR ((CONFIG_PHYSICAL_START \
15 + (CONFIG_PHYSICAL_ALIGN - 1)) \
16 & ~(CONFIG_PHYSICAL_ALIGN - 1))
18 /* Minimum kernel alignment, as a power of two */
20 #define MIN_KERNEL_ALIGN_LG2 PMD_SHIFT
22 #define MIN_KERNEL_ALIGN_LG2 (PAGE_SHIFT+1)
24 #define MIN_KERNEL_ALIGN (_AC(1, UL) << MIN_KERNEL_ALIGN_LG2)
26 #if (CONFIG_PHYSICAL_ALIGN & (CONFIG_PHYSICAL_ALIGN-1)) || \
27 (CONFIG_PHYSICAL_ALIGN < (_AC(1, UL) << MIN_KERNEL_ALIGN_LG2))
28 #error "Invalid value for CONFIG_PHYSICAL_ALIGN"
31 #ifdef CONFIG_KERNEL_BZIP2
32 #define BOOT_HEAP_SIZE 0x400000
33 #else /* !CONFIG_KERNEL_BZIP2 */
36 #define BOOT_HEAP_SIZE 0x7000
38 #define BOOT_HEAP_SIZE 0x4000
41 #endif /* !CONFIG_KERNEL_BZIP2 */
44 #define BOOT_STACK_SIZE 0x4000
46 #define BOOT_STACK_SIZE 0x1000
49 #endif /* __KERNEL__ */
51 #endif /* _ASM_X86_BOOT_H */