Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Sep 2014 15:15:06 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r271191 - stable/10/sys/i386/i386
Message-ID:  <201409061515.s86FF6jF051435@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
  */



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