diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2009-01-14 15:37:46 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2009-01-14 18:39:28 -0500 |
commit | 95c4bff0308eb0819436b730a836846d3e784657 (patch) | |
tree | bcda34e225632d3beb63871ff53b7eb87d942aca /arch/x86/include | |
parent | 73310a169aebe257efdd35a763cce1c7658f40c9 (diff) |
x86: headers cleanup - boot.h
Impact: cleanup
'make headers_check' warn us about leaking of kernel private
(mostly compile time vars) data to userspace in headers. Fix it.
Neither BOOT_HEAP_SIZE, BOOT_STACK_SIZE refs
was found by searching thru net (ie in user-space area)
so fence this all by __KERNEL__ guard.
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/include')
-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 */ |