diff options
Diffstat (limited to 'arch/x86/include/asm/boot.h')
-rw-r--r-- | arch/x86/include/asm/boot.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/x86/include/asm/boot.h b/arch/x86/include/asm/boot.h index c0e8e68a31fb..6526cf08b0e4 100644 --- a/arch/x86/include/asm/boot.h +++ b/arch/x86/include/asm/boot.h | |||
@@ -10,14 +10,16 @@ | |||
10 | #define EXTENDED_VGA 0xfffe /* 80x50 mode */ | 10 | #define EXTENDED_VGA 0xfffe /* 80x50 mode */ |
11 | #define ASK_VGA 0xfffd /* ask for it at bootup */ | 11 | #define ASK_VGA 0xfffd /* ask for it at bootup */ |
12 | 12 | ||
13 | #ifdef __KERNEL__ | ||
14 | |||
13 | /* Physical address where kernel should be loaded. */ | 15 | /* Physical address where kernel should be loaded. */ |
14 | #define LOAD_PHYSICAL_ADDR ((CONFIG_PHYSICAL_START \ | 16 | #define LOAD_PHYSICAL_ADDR ((CONFIG_PHYSICAL_START \ |
15 | + (CONFIG_PHYSICAL_ALIGN - 1)) \ | 17 | + (CONFIG_PHYSICAL_ALIGN - 1)) \ |
16 | & ~(CONFIG_PHYSICAL_ALIGN - 1)) | 18 | & ~(CONFIG_PHYSICAL_ALIGN - 1)) |
17 | 19 | ||
18 | #if (defined CONFIG_KERNEL_BZIP2) | 20 | #ifdef CONFIG_KERNEL_BZIP2 |
19 | #define BOOT_HEAP_SIZE 0x400000 | 21 | #define BOOT_HEAP_SIZE 0x400000 |
20 | #else | 22 | #else /* !CONFIG_KERNEL_BZIP2 */ |
21 | 23 | ||
22 | #ifdef CONFIG_X86_64 | 24 | #ifdef CONFIG_X86_64 |
23 | #define BOOT_HEAP_SIZE 0x7000 | 25 | #define BOOT_HEAP_SIZE 0x7000 |
@@ -25,7 +27,7 @@ | |||
25 | #define BOOT_HEAP_SIZE 0x4000 | 27 | #define BOOT_HEAP_SIZE 0x4000 |
26 | #endif | 28 | #endif |
27 | 29 | ||
28 | #endif | 30 | #endif /* !CONFIG_KERNEL_BZIP2 */ |
29 | 31 | ||
30 | #ifdef CONFIG_X86_64 | 32 | #ifdef CONFIG_X86_64 |
31 | #define BOOT_STACK_SIZE 0x4000 | 33 | #define BOOT_STACK_SIZE 0x4000 |
@@ -33,4 +35,6 @@ | |||
33 | #define BOOT_STACK_SIZE 0x1000 | 35 | #define BOOT_STACK_SIZE 0x1000 |
34 | #endif | 36 | #endif |
35 | 37 | ||
38 | #endif /* __KERNEL__ */ | ||
39 | |||
36 | #endif /* _ASM_X86_BOOT_H */ | 40 | #endif /* _ASM_X86_BOOT_H */ |