]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use the SMAP data from the loader if it is provided instead of using
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 13 Mar 2008 18:56:53 +0000 (18:56 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 13 Mar 2008 18:56:53 +0000 (18:56 +0000)
commitd0234f752fc2f7586f82d8073e12d0b6a31e4ec4
tree028c0c0f365879a69c3430be6483aa8204e064f5
parent858a959376eaefb4ea3314c1e07973eab64155bd
Use the SMAP data from the loader if it is provided instead of using
virtual 86 mode to query the BIOS directly.  This is needed for certain
HP machines whose BIOS only provide an SMAP when invoked from real mode.
On such machines the loader will be able to query the SMAP successfully
due to the recent BTX changes, but the kernel will not.

One thing I'm not sure of is if we can skip the INT 12h probe altogether
if we have the SMAP from the loader as it seems that we do the INT 12h
probe to setup enough state so we can use vm86 to call the BIOS.

MFC after: 1 week
sys/i386/i386/machdep.c