diff options
author | smh22@tempest.cl.cam.ac.uk <smh22@tempest.cl.cam.ac.uk> | 2004-12-30 14:28:53 +0000 |
---|---|---|
committer | smh22@tempest.cl.cam.ac.uk <smh22@tempest.cl.cam.ac.uk> | 2004-12-30 14:28:53 +0000 |
commit | b320f8524542f19d81f9cc73dad93e56bb9cc549 (patch) | |
tree | 697864cb7db1021222f813932b927637b1a3e9fa | |
parent | 5b1748e026bd4eb012d12c72dec5202daebda85c (diff) | |
download | xen-b320f8524542f19d81f9cc73dad93e56bb9cc549.tar.gz xen-b320f8524542f19d81f9cc73dad93e56bb9cc549.tar.bz2 xen-b320f8524542f19d81f9cc73dad93e56bb9cc549.zip |
bitkeeper revision 1.1159.170.73 (41d410a5UNN19EUanWSnfJ52P1DlQw)
remove unused fn
-rw-r--r-- | BitKeeper/etc/ignore | 1 | ||||
-rw-r--r-- | xen/arch/x86/e820.c | 34 |
2 files changed, 1 insertions, 34 deletions
diff --git a/BitKeeper/etc/ignore b/BitKeeper/etc/ignore index 6767868bd3..de77ccebfc 100644 --- a/BitKeeper/etc/ignore +++ b/BitKeeper/etc/ignore @@ -88,3 +88,4 @@ install/* patches/ebtables-brnf-5_vs_2.4.25.diff patches/ebtables.diff tools/x2d2/minixend +BLOG diff --git a/xen/arch/x86/e820.c b/xen/arch/x86/e820.c index fb2176258a..5ebc2324e7 100644 --- a/xen/arch/x86/e820.c +++ b/xen/arch/x86/e820.c @@ -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) { |