Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Aug 2014 21:08:40 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r270826 - head/sys/i386/i386
Message-ID:  <201408292108.s7TL8ela077734@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Fri Aug 29 21:08:40 2014
New Revision: 270826
URL: http://svnweb.freebsd.org/changeset/base/270826

Log:
  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
  Reviewed by:	nwhitehorn
  MFC after:	1 week

Modified:
  head/sys/i386/i386/machdep.c

Modified: head/sys/i386/i386/machdep.c
==============================================================================
--- head/sys/i386/i386/machdep.c	Fri Aug 29 20:50:49 2014	(r270825)
+++ head/sys/i386/i386/machdep.c	Fri Aug 29 21:08:40 2014	(r270826)
@@ -1639,6 +1639,10 @@ u_long bootdev;		/* not a struct cdev *-
 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
  */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408292108.s7TL8ela077734>