Messages in this thread Patch in this message | | | Date | Fri, 3 Jan 2003 23:48:14 -0500 | From | Paul <> | Subject | Re: [PATCHSET] New Year's Linux 2.4.21-pre2-jam2 |
| |
"J.A. Magallon" <jamagallon@able.es>, on Sat Jan 04, 2003 [02:22:43 AM] said: > HI, and HAPPY NEW YEAR to everybody !! > > New release of this kinda-hacked-kernel. Now that Andre's ide and many bugfixes > are in mainline, there is hole for more things ;) > 03-memparam.bz2 > Fix mem=XXX kernel parameter when user gives a size bigger than what > kernel autodetected (kill a previous change) > Author: Adrian Bunk <bunk@fs.tum.de>, > Leonardo Gomes Figueira <sabbath@planetarium.com.br> > > > Enjoy!! > > -- > J.A. Magallon <jamagallon@able.es> \ Software is like sex:
Hi;
This reversion should probably kill limit_regions() too... as I think it eliminates the only reference to it.
Paul set@pobox.com --- 2.4.20-mem/arch/i386/kernel/setup.c.orig 2003-01-03 23:08:41.000000000 -0500 +++ 2.4.20-mem/arch/i386/kernel/setup.c 2003-01-03 23:09:34.000000000 -0500 @@ -418,22 +418,6 @@ } } -static void __init limit_regions (unsigned long long size) -{ - unsigned long long current_addr = 0; - int i; - - 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) { | |