Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 May 2003 00:08:40 -0700
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Laszlo Vagner <george@vagner.com>
Cc:        agent dero <dero@bluhayz.homeunix.org>
Subject:   Re: The magical missing 6 megabytes of mysterious RAM
Message-ID:  <3EB8B0F8.8C40066E@mindspring.com>
References:  <20030506152406.P70768@bluhayz.homeunix.org> <008b01c31408$7766de30$16f03244@vagner.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Laszlo Vagner wrote:
> typical BIOS chips are about 1 megabyte and there is an option in the
> bios to copy the flash bios contents into physical ram for more performance
> on some systems (some can be disabled too).
> 
> My idea is that everything before the bios and including the kernel is
> copied to
> ram. naturally you couldnt run the kernel out of the flash memory or off
> the hard disk. Additional kernel drivers would take more ram also.

This would only make the memory reported by CMOS different from
the memory reported by the BIOS.

Since the memory reported by the CMOS is never printed for you
to see, that still leaves the kernel for the "real" vs. "avail"
difference.

BTW, if you read the code, you will see that the BIOS call used
gets memory "extents"; the holes in these extents are mapped
devices, BIOS, whatever, as reported by the BIOS.  It's accounted
in "real".

To do what you want, you would need to explicitly modify the BIOS
on your hardware to *not* count the flash as "mirrored BIOS".

Best suggestion is: treat it like a read-only disk, and boot from
it normally: let someone else (the loader) do the copy to RAM.

-- Terry



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3EB8B0F8.8C40066E>