svn commit: r271191 - stable/10/sys/i386/i386

John Baldwin jhb at FreeBSD.org
Sat Sep 6 15:15:06 UTC 2014


Author: jhb
Date: Sat Sep  6 15:15:06 2014
New Revision: 271191
URL: http://svnweb.freebsd.org/changeset/base/271191

Log:
  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)

Modified:
  stable/10/sys/i386/i386/machdep.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/i386/i386/machdep.c
==============================================================================
--- stable/10/sys/i386/i386/machdep.c	Sat Sep  6 15:11:35 2014	(r271190)
+++ stable/10/sys/i386/i386/machdep.c	Sat Sep  6 15:15:06 2014	(r271191)
@@ -1636,6 +1636,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
  */


More information about the svn-src-all mailing list