Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jul 2018 13:21:49 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r336338 - stable/11/usr.sbin/cpucontrol
Message-ID:  <201807161321.w6GDLntY098668@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Mon Jul 16 13:21:49 2018
New Revision: 336338
URL: https://svnweb.freebsd.org/changeset/base/336338

Log:
  MFC r336257, r336258, r336263:
  Use the MSR name.

Modified:
  stable/11/usr.sbin/cpucontrol/amd10h.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.sbin/cpucontrol/amd10h.c
==============================================================================
--- stable/11/usr.sbin/cpucontrol/amd10h.c	Mon Jul 16 13:14:53 2018	(r336337)
+++ stable/11/usr.sbin/cpucontrol/amd10h.c	Mon Jul 16 13:21:49 2018	(r336338)
@@ -129,7 +129,7 @@ amd10h_update(const char *dev, const char *path)
 	}
 	signature = idargs.data[0];
 
-	msrargs.msr = 0x0000008b;
+	msrargs.msr = MSR_BIOS_SIGN;
 	error = ioctl(devfd, CPUCTL_RDMSR, &msrargs);
 	if (error < 0) {
 		WARN(0, "ioctl(%s)", dev);
@@ -285,7 +285,7 @@ amd10h_update(const char *dev, const char *path)
 		fprintf(stderr, "done.\n");
 	}
 
-	msrargs.msr = 0x0000008b;
+	msrargs.msr = MSR_BIOS_SIGN;
 	error = ioctl(devfd, CPUCTL_RDMSR, &msrargs);
 	if (error < 0) {
 		WARN(0, "ioctl(%s)", dev);



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