kernel environment between reboots, diskless
Ted Unangst
tedu at stanford.edu
Thu Jan 15 19:39:39 PST 2004
On Wed, 14 Jan 2004, Steve Watt wrote:
> I'm trying to see if there's a way to get that information into the
> loader (or the driver) in some way that doesn't require rewriting a file
> in the flash every reboot, to avoid flash write cycles.
>
> I know there's some amount of NVRAM in PCs, but didn't spot anything
> about how to get at it from the driver. It'd be nice, for this
> sort of application, if there was a way to stash somewhere between
> 2 and 8 bytes somewhere...
many (most?) PCs don't clear RAM on soft reboot, so stuff like the message
buffer survives. try mapping the same physical address, out of the way of
other code, and leaving your data there.
--
More information about the freebsd-hackers
mailing list