Skip to contentSkip to conversation

[2.4] Oops if limit of memory via 'mem=123' failed.

PATCH New Peter Seiderer 1 participant 1 message May 28, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 [2.4] Oops if limit of memory via 'mem=123' failed.

Hello,
the following patch would have saved me some time in wondering about the 'mem=XXX' kernel-parameter (more specific that initrd failed if mem=XXX is greater than the available physical memory size).
Please apply if you think it would be helpful to other.
Peter

--- linux-2.4.20/arch/i386/kernel/setup.c_orig 2003-05-28 12:57:39.000000000 +0200
+++ linux-2.4.20/arch/i386/kernel/setup.c 2003-05-28
13:07:21.000000000 +0200
@@ -433,6 +433,7 @@

                        }
                }
        }

+ printk(KERN_ERR "Ooops! Limit of memory to %016Lx failed!\n", size);
}
static void __init add_memory_region(unsigned long long start,
unsigned long long size, int type)