diff options
author | Andi Kleen <ak@suse.de> | 2005-11-05 11:25:53 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-14 22:55:14 -0500 |
commit | 2bc0414ee04fd8bb798760801f5d7476dff44241 (patch) | |
tree | 3ae48fd461dca1f7f46f440325c674717a36f693 /arch/x86_64/kernel/head64.c | |
parent | 6b75aeedde1e8a8513393d3c1367bf81bc5b0c67 (diff) |
[PATCH] x86_64: Only use asm/sections.h to declare section symbols
Adding __initdata_* to asm-generic/sections.h
Replaces a lot of open coded externs in arch/x86_64/*
I had to change __bss_end to __bss_stop to match the other architectures.
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
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; |