Date: Tue, 06 Apr 1999 23:53:56 +1000 From: Stephen McKay <syssgm@detir.qld.gov.au> To: freebsd-current@freebsd.org Cc: syssgm@detir.qld.gov.au Subject: Slightly wonky auto memory probe + fix Message-ID: <199904061353.XAA19881@nymph.detir.qld.gov.au>
next in thread | raw e-mail | index | archive | help
[I posted this to -current because the technology is the same in -current even though this box will never run -current. Bear with me.] We've just got a new Dell PowerEdge (very nice) with 512MB of ram. By default, 3.1-stable sees only 64MB. Looking carefully, it sees 8KB less than 64MB, so it doesn't probe for the rest. I applied this patch, which fiddles the "Hmm got 64MB so probe for the rest" heuristic. With this patch, it found all 512MB, to the exact byte. Unfortunately, it kinda changes it from a "heuristic" to a "hack". :-( --- machdep.c Fri Feb 19 15:31:36 1999 +++ /tmp/sgm/machdep.c Tue Apr 6 23:40:36 1999 @@ -1428,7 +1428,7 @@ * the MAXMEM option or the npx0 "msize", then don't do the speculative * memory probe. */ - if (Maxmem >= 0x4000) + if (Maxmem >= 0x3f00) speculative_mprobe = TRUE; else speculative_mprobe = FALSE; @@ -1538,7 +1538,7 @@ if (phys_avail[pa_indx] == target_page) { phys_avail[pa_indx] += PAGE_SIZE; if (speculative_mprobe == TRUE && - phys_avail[pa_indx] >= (64*1024*1024)) + phys_avail[pa_indx] >= (63*1024*1024)) Maxmem++; } else { pa_indx++; Stephen. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904061353.XAA19881>