]> xenbits.xensource.com Git - people/pauldu/xen.git/commitdiff
bitkeeper revision 1.1159.170.73 (41d410a5UNN19EUanWSnfJ52P1DlQw)
authorsmh22@tempest.cl.cam.ac.uk <smh22@tempest.cl.cam.ac.uk>
Thu, 30 Dec 2004 14:28:53 +0000 (14:28 +0000)
committersmh22@tempest.cl.cam.ac.uk <smh22@tempest.cl.cam.ac.uk>
Thu, 30 Dec 2004 14:28:53 +0000 (14:28 +0000)
remove unused fn

BitKeeper/etc/ignore
xen/arch/x86/e820.c

index 6767868bd3a543c0d79f140ba01a366fde702588..de77ccebfc6440f9fc8d4291bfe7889b724486f5 100644 (file)
@@ -88,3 +88,4 @@ install/*
 patches/ebtables-brnf-5_vs_2.4.25.diff
 patches/ebtables.diff
 tools/x2d2/minixend
+BLOG
index fb2176258acdd8d0c12f8d8082f8992e6d3eaa09..5ebc2324e7a2ea31666c7a4e096daeeb7e229ce4 100644 (file)
@@ -5,40 +5,6 @@
 
 struct e820map e820;
 
-static void __init limit_regions(unsigned long long size)
-{
-    unsigned long long current_addr = 0;
-    int i;
-
-#if 0
-    if (efi_enabled) {
-        for (i = 0; i < memmap.nr_map; i++) {
-            current_addr = memmap.map[i].phys_addr +
-                (memmap.map[i].num_pages << 12);
-            if (memmap.map[i].type == EFI_CONVENTIONAL_MEMORY) {
-                if (current_addr >= size) {
-                    memmap.map[i].num_pages -=
-                        (((current_addr-size) + PAGE_SIZE-1) >> PAGE_SHIFT);
-                    memmap.nr_map = i + 1;
-                    return;
-                }
-            }
-        }
-    }
-#endif
-
-    for (i = 0; i < e820.nr_map; i++) {
-        if (e820.map[i].type == E820_RAM) {
-            current_addr = e820.map[i].addr + e820.map[i].size;
-            if (current_addr >= size) {
-                e820.map[i].size -= current_addr-size;
-                e820.nr_map = i + 1;
-                return;
-            }
-        }
-    }
-}
-
 static void __init add_memory_region(unsigned long long start,
                                      unsigned long long size, int type)
 {