diff options
Diffstat (limited to 'arch/x86_64/kernel/head64.c')
-rw-r--r-- | arch/x86_64/kernel/head64.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/x86_64/kernel/head64.c b/arch/x86_64/kernel/head64.c index e0f12d49db4c..b675c5add01e 100644 --- a/arch/x86_64/kernel/head64.c +++ b/arch/x86_64/kernel/head64.c | |||
@@ -20,14 +20,14 @@ | |||
20 | #include <asm/setup.h> | 20 | #include <asm/setup.h> |
21 | #include <asm/desc.h> | 21 | #include <asm/desc.h> |
22 | #include <asm/pgtable.h> | 22 | #include <asm/pgtable.h> |
23 | #include <asm/sections.h> | ||
23 | 24 | ||
24 | /* Don't add a printk in there. printk relies on the PDA which is not initialized | 25 | /* Don't add a printk in there. printk relies on the PDA which is not initialized |
25 | yet. */ | 26 | yet. */ |
26 | static void __init clear_bss(void) | 27 | static void __init clear_bss(void) |
27 | { | 28 | { |
28 | extern char __bss_start[], __bss_end[]; | ||
29 | memset(__bss_start, 0, | 29 | memset(__bss_start, 0, |
30 | (unsigned long) __bss_end - (unsigned long) __bss_start); | 30 | (unsigned long) __bss_stop - (unsigned long) __bss_start); |
31 | } | 31 | } |
32 | 32 | ||
33 | #define NEW_CL_POINTER 0x228 /* Relative to real mode data */ | 33 | #define NEW_CL_POINTER 0x228 /* Relative to real mode data */ |
@@ -76,8 +76,6 @@ static void __init setup_boot_cpu_data(void) | |||
76 | boot_cpu_data.x86_mask = eax & 0xf; | 76 | boot_cpu_data.x86_mask = eax & 0xf; |
77 | } | 77 | } |
78 | 78 | ||
79 | extern char _end[]; | ||
80 | |||
81 | void __init x86_64_start_kernel(char * real_mode_data) | 79 | void __init x86_64_start_kernel(char * real_mode_data) |
82 | { | 80 | { |
83 | char *s; | 81 | char *s; |