diff options
author | jhb <jhb@FreeBSD.org> | 2014-09-06 15:15:06 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2014-09-06 15:15:06 +0000 |
commit | ed4c49e7dd0635009225ccd41194c41c10f63915 (patch) | |
tree | 20dc400697ac43a821a4e806dd70dc7fdd70c78a /sys/i386 | |
parent | 5a094736fbe3fd6bd8c010c175a09079474f21b1 (diff) | |
download | FreeBSD-src-ed4c49e7dd0635009225ccd41194c41c10f63915.zip FreeBSD-src-ed4c49e7dd0635009225ccd41194c41c10f63915.tar.gz |
MFC 270826:
MFamd64: Add a machdep.bootmethod sysctl to inform the installer which
firmware method was used for booting. This is hardcoded to BIOS on i386.
PR: 192962
Approved by: re (gjb)
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/i386/machdep.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index 9e25cd9..1f57e70 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -1636,6 +1636,10 @@ u_long bootdev; /* not a struct cdev *- encoding is different */ SYSCTL_ULONG(_machdep, OID_AUTO, guessed_bootdev, CTLFLAG_RD, &bootdev, 0, "Maybe the Boot device (not in struct cdev *format)"); +static char bootmethod[16] = "BIOS"; +SYSCTL_STRING(_machdep, OID_AUTO, bootmethod, CTLFLAG_RD, bootmethod, 0, + "System firmware boot method"); + /* * Initialize 386 and configure to run kernel */ |