aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Starikovskiy <astarikovskiy@suse.de>2008-03-17 15:08:17 -0400
committerIngo Molnar <mingo@elte.hu>2008-04-17 11:41:05 -0400
commitce3fe6b2bfded4f5d931c5f2f9325dc2e3fd3a74 (patch)
tree8e8001b52fa710c90a14a0078d4f689086186b9e
parente3e3ffa20351b32b5eaa6020d051305c8d803ed4 (diff)
x86: use get_bios_ebda in mpparse_64.c
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--arch/x86/kernel/mpparse_32.c2
-rw-r--r--arch/x86/kernel/mpparse_64.c11
-rw-r--r--arch/x86/kernel/setup_32.c2
-rw-r--r--arch/x86/mm/discontig_32.c2
-rw-r--r--include/asm-x86/bios_ebda.h (renamed from include/asm-x86/mach-default/bios_ebda.h)0
5 files changed, 7 insertions, 10 deletions
diff --git a/arch/x86/kernel/mpparse_32.c b/arch/x86/kernel/mpparse_32.c
index 838e4974e1ce..a2162644cb4e 100644
--- a/arch/x86/kernel/mpparse_32.c
+++ b/arch/x86/kernel/mpparse_32.c
@@ -27,11 +27,11 @@
27#include <asm/mtrr.h> 27#include <asm/mtrr.h>
28#include <asm/mpspec.h> 28#include <asm/mpspec.h>
29#include <asm/io_apic.h> 29#include <asm/io_apic.h>
30#include <asm/bios_ebda.h>
30 31
31#include <mach_apic.h> 32#include <mach_apic.h>
32#include <mach_apicdef.h> 33#include <mach_apicdef.h>
33#include <mach_mpparse.h> 34#include <mach_mpparse.h>
34#include <bios_ebda.h>
35 35
36/* Have we found an MP table */ 36/* Have we found an MP table */
37int smp_found_config; 37int smp_found_config;
diff --git a/arch/x86/kernel/mpparse_64.c b/arch/x86/kernel/mpparse_64.c
index 269fd46df42c..fb74135f9d0e 100644
--- a/arch/x86/kernel/mpparse_64.c
+++ b/arch/x86/kernel/mpparse_64.c
@@ -29,6 +29,7 @@
29#include <asm/io_apic.h> 29#include <asm/io_apic.h>
30#include <asm/proto.h> 30#include <asm/proto.h>
31#include <asm/acpi.h> 31#include <asm/acpi.h>
32#include <asm/bios_ebda.h>
32 33
33#include <mach_apic.h> 34#include <mach_apic.h>
34 35
@@ -641,13 +642,9 @@ static void __init __find_smp_config(unsigned reserve)
641 * should be fixed. 642 * should be fixed.
642 */ 643 */
643 644
644 address = *(unsigned short *)phys_to_virt(0x40E); 645 address = get_bios_ebda();
645 address <<= 4; 646 if (address)
646 if (smp_scan_config(address, 0x1000, reserve)) 647 smp_scan_config(address, 0x1000, reserve);
647 return;
648
649 /* If we have come this far, we did not find an MP table */
650 printk(KERN_INFO "No mptable found.\n");
651} 648}
652 649
653void __init early_find_smp_config(void) 650void __init early_find_smp_config(void)
diff --git a/arch/x86/kernel/setup_32.c b/arch/x86/kernel/setup_32.c
index eb97bcfe0f6f..58f3c1fbc5c3 100644
--- a/arch/x86/kernel/setup_32.c
+++ b/arch/x86/kernel/setup_32.c
@@ -62,7 +62,7 @@
62#include <asm/io.h> 62#include <asm/io.h>
63#include <asm/vmi.h> 63#include <asm/vmi.h>
64#include <setup_arch.h> 64#include <setup_arch.h>
65#include <bios_ebda.h> 65#include <asm/bios_ebda.h>
66#include <asm/cacheflush.h> 66#include <asm/cacheflush.h>
67#include <asm/processor.h> 67#include <asm/processor.h>
68 68
diff --git a/arch/x86/mm/discontig_32.c b/arch/x86/mm/discontig_32.c
index 8e25e06ff730..eba0bbede7a6 100644
--- a/arch/x86/mm/discontig_32.c
+++ b/arch/x86/mm/discontig_32.c
@@ -37,7 +37,7 @@
37#include <asm/e820.h> 37#include <asm/e820.h>
38#include <asm/setup.h> 38#include <asm/setup.h>
39#include <asm/mmzone.h> 39#include <asm/mmzone.h>
40#include <bios_ebda.h> 40#include <asm/bios_ebda.h>
41 41
42struct pglist_data *node_data[MAX_NUMNODES] __read_mostly; 42struct pglist_data *node_data[MAX_NUMNODES] __read_mostly;
43EXPORT_SYMBOL(node_data); 43EXPORT_SYMBOL(node_data);
diff --git a/include/asm-x86/mach-default/bios_ebda.h b/include/asm-x86/bios_ebda.h
index 9cbd9a668af8..9cbd9a668af8 100644
--- a/include/asm-x86/mach-default/bios_ebda.h
+++ b/include/asm-x86/bios_ebda.h