diff options
author | Alexander van Heukelum <heukelum@mailshack.com> | 2008-03-04 14:12:28 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:40:52 -0400 |
commit | ecd94c0809eb0ff50b628fa061c531a6fbf2fbbc (patch) | |
tree | 4e687b38cb695a18470d2368c55ed69746cab8f4 /arch/x86/kernel/head64.c | |
parent | 2fde61fdb00c2337efc56cfbb05bde8a42864e65 (diff) |
x86: reserve end-of-conventional-memory to 1MB, 64-bit, use paravirt_enabled
Jeremy Fitzhardinge pointed out that looking at the boot_params
struct to determine if the system is running in a paravirtual
environment is not reliable for the Xen case, currently. He also
points out that there already exists a function to determine if
the system is running in a paravirtual environment. So let's use
that instead. This gets rid of the preprocessor test too.
Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/head64.c')
-rw-r--r-- | arch/x86/kernel/head64.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/x86/kernel/head64.c b/arch/x86/kernel/head64.c index 269a6b481fe..48be76cda93 100644 --- a/arch/x86/kernel/head64.c +++ b/arch/x86/kernel/head64.c | |||
@@ -72,12 +72,8 @@ static void __init reserve_ebda_region(void) | |||
72 | /* that area is absent. We'll just have to assume */ | 72 | /* that area is absent. We'll just have to assume */ |
73 | /* that the paravirt case can handle memory setup */ | 73 | /* that the paravirt case can handle memory setup */ |
74 | /* correctly, without our help. */ | 74 | /* correctly, without our help. */ |
75 | #ifdef CONFIG_PARAVIRT | 75 | if (paravirt_enabled()) |
76 | if ((boot_params.hdr.version >= 0x207) && | ||
77 | (boot_params.hdr.hardware_subarch != 0)) { | ||
78 | return; | 76 | return; |
79 | } | ||
80 | #endif | ||
81 | 77 | ||
82 | /* end of low (conventional) memory */ | 78 | /* end of low (conventional) memory */ |
83 | lowmem = *(unsigned short *)__va(BIOS_LOWMEM_KILOBYTES); | 79 | lowmem = *(unsigned short *)__va(BIOS_LOWMEM_KILOBYTES); |