aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/e820.c
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-07-09 14:06:22 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-07-09 14:06:22 +0100
commit6df628045b5dd29ca52334e683d93b38b52e3dc4 (patch)
tree3d561dcffaf65a3fb0d63f25ebcb052f29d8aed6 /xen/arch/x86/e820.c
parent9f426c8ad5ae2a5fec29c8505fa5a733084d4a48 (diff)
downloadxen-6df628045b5dd29ca52334e683d93b38b52e3dc4.tar.gz
xen-6df628045b5dd29ca52334e683d93b38b52e3dc4.tar.bz2
xen-6df628045b5dd29ca52334e683d93b38b52e3dc4.zip
Remove no-pv-compat cmdline option.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/arch/x86/e820.c')
-rw-r--r--xen/arch/x86/e820.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/xen/arch/x86/e820.c b/xen/arch/x86/e820.c
index 59743f4493..54ebd32762 100644
--- a/xen/arch/x86/e820.c
+++ b/xen/arch/x86/e820.c
@@ -342,39 +342,6 @@ static void __init clip_4gb(void)
#define clip_4gb() ((void)0)
#endif
-#ifdef CONFIG_COMPAT
-static void __init clip_compat(void)
-{
- unsigned long long limit;
- unsigned int i;
-
- if ( compat_disabled )
- return;
- /* 32-bit guests restricted to 166 GB (with current memory allocator). */
- limit = (unsigned long long)(MACH2PHYS_COMPAT_VIRT_END -
- __HYPERVISOR_COMPAT_VIRT_START) << 10;
- for ( i = 0; i < e820.nr_map; i++ )
- {
- if ( (e820.map[i].addr + e820.map[i].size) <= limit )
- continue;
- printk("WARNING: Only the first %Lu GB of the physical memory map "
- "can be accessed\n"
- " by compatibility mode guests. "
- "Truncating the memory map...\n",
- limit >> 30);
- if ( e820.map[i].addr >= limit )
- e820.nr_map = i;
- else
- {
- e820.map[i].size = limit - e820.map[i].addr;
- e820.nr_map = i + 1;
- }
- }
-}
-#else
-#define clip_compat() ((void)0)
-#endif
-
static void __init clip_mem(void)
{
int i;
@@ -408,7 +375,6 @@ static void __init machine_specific_memory_setup(
*raw_nr = nr;
(void)copy_e820_map(raw, nr);
clip_4gb();
- clip_compat();
clip_mem();
}