diff options
author | Borislav Petkov <bp@alien8.de> | 2013-03-04 15:16:17 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2013-04-02 19:03:29 -0400 |
commit | 8e3c2a8cf647e2f3a1e9d38009b0d1c02145822f (patch) | |
tree | bd5991f51985964c167391225a707b6c515d9656 | |
parent | 2dead15fb8f6522b96c913603b5ad0b5c7d01f49 (diff) |
x86: Drop KERNEL_IMAGE_START
We have KERNEL_IMAGE_START and __START_KERNEL_map which both contain the
start of the kernel text mapping's virtual address. Remove the prior one
which has been replicated a lot less times around the tree.
No functionality change.
Signed-off-by: Borislav Petkov <bp@alien8.de>
Link: http://lkml.kernel.org/r/1362428180-8865-3-git-send-email-bp@alien8.de
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r-- | arch/x86/include/asm/page_64_types.h | 1 | ||||
-rw-r--r-- | arch/x86/kernel/head64.c | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/arch/x86/include/asm/page_64_types.h b/arch/x86/include/asm/page_64_types.h index 8b491e66eaa8..6c896fbe21db 100644 --- a/arch/x86/include/asm/page_64_types.h +++ b/arch/x86/include/asm/page_64_types.h | |||
@@ -48,6 +48,5 @@ | |||
48 | * arch/x86/kernel/head_64.S), and it is mapped here: | 48 | * arch/x86/kernel/head_64.S), and it is mapped here: |
49 | */ | 49 | */ |
50 | #define KERNEL_IMAGE_SIZE (512 * 1024 * 1024) | 50 | #define KERNEL_IMAGE_SIZE (512 * 1024 * 1024) |
51 | #define KERNEL_IMAGE_START _AC(0xffffffff80000000, UL) | ||
52 | 51 | ||
53 | #endif /* _ASM_X86_PAGE_64_DEFS_H */ | 52 | #endif /* _ASM_X86_PAGE_64_DEFS_H */ |
diff --git a/arch/x86/kernel/head64.c b/arch/x86/kernel/head64.c index c5e403f6d869..101ac1a9263e 100644 --- a/arch/x86/kernel/head64.c +++ b/arch/x86/kernel/head64.c | |||
@@ -144,10 +144,10 @@ void __init x86_64_start_kernel(char * real_mode_data) | |||
144 | * Build-time sanity checks on the kernel image and module | 144 | * Build-time sanity checks on the kernel image and module |
145 | * area mappings. (these are purely build-time and produce no code) | 145 | * area mappings. (these are purely build-time and produce no code) |
146 | */ | 146 | */ |
147 | BUILD_BUG_ON(MODULES_VADDR < KERNEL_IMAGE_START); | 147 | BUILD_BUG_ON(MODULES_VADDR < __START_KERNEL_map); |
148 | BUILD_BUG_ON(MODULES_VADDR-KERNEL_IMAGE_START < KERNEL_IMAGE_SIZE); | 148 | BUILD_BUG_ON(MODULES_VADDR - __START_KERNEL_map < KERNEL_IMAGE_SIZE); |
149 | BUILD_BUG_ON(MODULES_LEN + KERNEL_IMAGE_SIZE > 2*PUD_SIZE); | 149 | BUILD_BUG_ON(MODULES_LEN + KERNEL_IMAGE_SIZE > 2*PUD_SIZE); |
150 | BUILD_BUG_ON((KERNEL_IMAGE_START & ~PMD_MASK) != 0); | 150 | BUILD_BUG_ON((__START_KERNEL_map & ~PMD_MASK) != 0); |
151 | BUILD_BUG_ON((MODULES_VADDR & ~PMD_MASK) != 0); | 151 | BUILD_BUG_ON((MODULES_VADDR & ~PMD_MASK) != 0); |
152 | BUILD_BUG_ON(!(MODULES_VADDR > __START_KERNEL)); | 152 | BUILD_BUG_ON(!(MODULES_VADDR > __START_KERNEL)); |
153 | BUILD_BUG_ON(!(((MODULES_END - 1) & PGDIR_MASK) == | 153 | BUILD_BUG_ON(!(((MODULES_END - 1) & PGDIR_MASK) == |