lkml.org 
[lkml]   [2003]   [Jan]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [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)
{
\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.036 / U:1.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site