diff options
Diffstat (limited to 'arch/x86/include/asm/boot.h')
-rw-r--r-- | arch/x86/include/asm/boot.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/arch/x86/include/asm/boot.h b/arch/x86/include/asm/boot.h index dd61616cb73d..6ba23dd9fc92 100644 --- a/arch/x86/include/asm/boot.h +++ b/arch/x86/include/asm/boot.h | |||
@@ -1,26 +1,36 @@ | |||
1 | #ifndef _ASM_X86_BOOT_H | 1 | #ifndef _ASM_X86_BOOT_H |
2 | #define _ASM_X86_BOOT_H | 2 | #define _ASM_X86_BOOT_H |
3 | 3 | ||
4 | /* Don't touch these, unless you really know what you're doing. */ | ||
5 | #define DEF_SYSSEG 0x1000 | ||
6 | #define DEF_SYSSIZE 0x7F00 | ||
7 | |||
8 | /* Internal svga startup constants */ | 4 | /* Internal svga startup constants */ |
9 | #define NORMAL_VGA 0xffff /* 80x25 mode */ | 5 | #define NORMAL_VGA 0xffff /* 80x25 mode */ |
10 | #define EXTENDED_VGA 0xfffe /* 80x50 mode */ | 6 | #define EXTENDED_VGA 0xfffe /* 80x50 mode */ |
11 | #define ASK_VGA 0xfffd /* ask for it at bootup */ | 7 | #define ASK_VGA 0xfffd /* ask for it at bootup */ |
12 | 8 | ||
9 | #ifdef __KERNEL__ | ||
10 | |||
13 | /* Physical address where kernel should be loaded. */ | 11 | /* Physical address where kernel should be loaded. */ |
14 | #define LOAD_PHYSICAL_ADDR ((CONFIG_PHYSICAL_START \ | 12 | #define LOAD_PHYSICAL_ADDR ((CONFIG_PHYSICAL_START \ |
15 | + (CONFIG_PHYSICAL_ALIGN - 1)) \ | 13 | + (CONFIG_PHYSICAL_ALIGN - 1)) \ |
16 | & ~(CONFIG_PHYSICAL_ALIGN - 1)) | 14 | & ~(CONFIG_PHYSICAL_ALIGN - 1)) |
17 | 15 | ||
16 | #ifdef CONFIG_KERNEL_BZIP2 | ||
17 | #define BOOT_HEAP_SIZE 0x400000 | ||
18 | #else /* !CONFIG_KERNEL_BZIP2 */ | ||
19 | |||
18 | #ifdef CONFIG_X86_64 | 20 | #ifdef CONFIG_X86_64 |
19 | #define BOOT_HEAP_SIZE 0x7000 | 21 | #define BOOT_HEAP_SIZE 0x7000 |
20 | #define BOOT_STACK_SIZE 0x4000 | ||
21 | #else | 22 | #else |
22 | #define BOOT_HEAP_SIZE 0x4000 | 23 | #define BOOT_HEAP_SIZE 0x4000 |
24 | #endif | ||
25 | |||
26 | #endif /* !CONFIG_KERNEL_BZIP2 */ | ||
27 | |||
28 | #ifdef CONFIG_X86_64 | ||
29 | #define BOOT_STACK_SIZE 0x4000 | ||
30 | #else | ||
23 | #define BOOT_STACK_SIZE 0x1000 | 31 | #define BOOT_STACK_SIZE 0x1000 |
24 | #endif | 32 | #endif |
25 | 33 | ||
34 | #endif /* __KERNEL__ */ | ||
35 | |||
26 | #endif /* _ASM_X86_BOOT_H */ | 36 | #endif /* _ASM_X86_BOOT_H */ |