]>
Commit | Line | Data |
---|---|---|
1965aae3 PA |
1 | #ifndef _ASM_X86_BOOT_H |
2 | #define _ASM_X86_BOOT_H | |
1da177e4 | 3 | |
1da177e4 LT |
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 */ | |
8 | ||
95c4bff0 CG |
9 | #ifdef __KERNEL__ |
10 | ||
658dbfeb | 11 | #include <asm/pgtable_types.h> |
37ba7ab5 | 12 | |
beb7dd86 | 13 | /* Physical address where kernel should be loaded. */ |
dd0ec16f VG |
14 | #define LOAD_PHYSICAL_ADDR ((CONFIG_PHYSICAL_START \ |
15 | + (CONFIG_PHYSICAL_ALIGN - 1)) \ | |
e69f202d VG |
16 | & ~(CONFIG_PHYSICAL_ALIGN - 1)) |
17 | ||
37ba7ab5 | 18 | /* Minimum kernel alignment, as a power of two */ |
22f4319d | 19 | #ifdef CONFIG_X86_64 |
37ba7ab5 PA |
20 | #define MIN_KERNEL_ALIGN_LG2 PMD_SHIFT |
21 | #else | |
658dbfeb | 22 | #define MIN_KERNEL_ALIGN_LG2 (PAGE_SHIFT + THREAD_ORDER) |
37ba7ab5 PA |
23 | #endif |
24 | #define MIN_KERNEL_ALIGN (_AC(1, UL) << MIN_KERNEL_ALIGN_LG2) | |
25 | ||
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" | |
29 | #endif | |
30 | ||
95c4bff0 | 31 | #ifdef CONFIG_KERNEL_BZIP2 |
ae03c499 | 32 | #define BOOT_HEAP_SIZE 0x400000 |
95c4bff0 | 33 | #else /* !CONFIG_KERNEL_BZIP2 */ |
ae03c499 | 34 | |
7c539764 AH |
35 | #ifdef CONFIG_X86_64 |
36 | #define BOOT_HEAP_SIZE 0x7000 | |
7c539764 AH |
37 | #else |
38 | #define BOOT_HEAP_SIZE 0x4000 | |
ae03c499 AK |
39 | #endif |
40 | ||
95c4bff0 | 41 | #endif /* !CONFIG_KERNEL_BZIP2 */ |
ae03c499 AK |
42 | |
43 | #ifdef CONFIG_X86_64 | |
44 | #define BOOT_STACK_SIZE 0x4000 | |
45 | #else | |
7c539764 AH |
46 | #define BOOT_STACK_SIZE 0x1000 |
47 | #endif | |
48 | ||
95c4bff0 CG |
49 | #endif /* __KERNEL__ */ |
50 | ||
1965aae3 | 51 | #endif /* _ASM_X86_BOOT_H */ |