Re: [PATCHSET] New Year's Linux 2.4.21-pre2-jam2

Paul (set@pobox.com)
Fri, 3 Jan 2003 23:48:14 -0500


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-31118-1041656024-0001-2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

"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

--=_courier-31118-1041656024-0001-2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=03-memparam-extra

--- 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)
{

--=_courier-31118-1041656024-0001-2--