From owner-freebsd-hackers Sat Nov 16 17:45:48 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id RAA05788 for hackers-outgoing; Sat, 16 Nov 1996 17:45:48 -0800 (PST) Received: from root.com (implode.root.com [198.145.90.17]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id RAA05769 for ; Sat, 16 Nov 1996 17:45:45 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by root.com (8.7.6/8.6.5) with SMTP id RAA17595; Sat, 16 Nov 1996 17:44:50 -0800 (PST) Message-Id: <199611170144.RAA17595@root.com> X-Authentication-Warning: implode.root.com: Host localhost [127.0.0.1] didn't use HELO protocol To: Erich Boleyn cc: hackers@FreeBSD.org Subject: Re: Memory probe(s) in FreeBSD In-reply-to: Your message of "Sat, 16 Nov 1996 16:04:37 PST." From: David Greenman Reply-To: dg@root.com Date: Sat, 16 Nov 1996 17:44:50 -0800 Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk >The situation is that FreeBSD does some weird stuff in >"i386/i386/machdep.c" which interferes with correct autodetection of >the amount of RAM installed. > >The existing bootloader checks the BIOS interfaces for lower and upper >memory, and pass that to the kernel. > >The kernel checks the RTC values and used to always ignore the values >passed by the bootloader. > >Currently, it does use the BIOS value passed by the bootloader for lower >memory, because it was discovered that this was necessary to get APM and >SMP code to work right. It still ignores the BIOS values for upper memory, >though. > >I would argue that the BIOS values should always be used, and the RTC >values simply ignored unless something specific (like the SMP probe) needs >them. I seem to recall that there was a problem with doing this on some systems, but since my memory is so vague, I'm inclined to agree with you. :-) It's probably that old FreeBSD bootblocks didn't pass in the BIOS information (via the bootinfo struct)...but this was so long ago that I don't think it matters anymore. Perhaps it should use the RTC numbers if the passed-in BIOS numbers are zero? -DG David Greenman Core-team/Principal Architect, The FreeBSD Project