Re: 64Mb RAM maximum with linux?

Josh Richards (jrichard@freedom.gen.ca.us)
Sat, 23 Nov 1996 20:15:49 -0800 (PST)


Try this simple patch.

Of course a better thing to do would be to get Linux to recognize >64
megs..

On Thu, 21 Nov 1996, Albert Cahalan wrote:

>
> > [Resume: Linux seen 64Mb in place of 96Mb installed]
> >
> > Bios, DOS and Windows view my 96Mb, but, under Linux 2.1.10 & 2.0.25
>
> It would be good to fix this, but for 2.0 at least I think Linux should
> print "Check the documentation if you have over 64 MB of RAM" if over
> 63 MB are detected. I hope that is not too much of a feature for 2.0.
>

*** arch/i386/mm/init.c.orig Sat Nov 23 19:47:32 1996
--- arch/i386/mm/init.c Sat Nov 23 20:02:28 1996
***************
*** 269,274 ****
--- 269,285 ----
codepages << (PAGE_SHIFT-10),
reservedpages << (PAGE_SHIFT-10),
datapages << (PAGE_SHIFT-10));
+
+ /* [23 Nov 1996]
+ * Added by Josh Richards (jrichard@fix.net)
+ */
+ /* check for greater then 63 megs and give warning */
+ if (max_mapnr >= 64512) {
+ printk("Warning: You may have more memory then was
+ detected by the kernel. Check the documentation
+ and add the neccessary boot parameter to
+ specify the total available RAM. \n");
+ }
+
/* test if the WP bit is honoured in supervisor mode */
if (wp_works_ok < 0) {
unsigned char tmp_reg;

| Josh Richards -- Network Admin/Tech Support @ The FIX Network |
| <jrichard@FIX.Net> <jrichard@Freedom.gen.ca.us> <jrichard@Slonet.org> |
| <http://www.freedom.gen.ca.us/jrichard/> Finger for my PGP Key |
| - 'Life is hard, sendmail.cf reflects this...' - |