Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jul 2018 19:45:12 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r336258 - head/usr.sbin/cpucontrol
Message-ID:  <201807131945.w6DJjCQ9085479@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Fri Jul 13 19:45:12 2018
New Revision: 336258
URL: https://svnweb.freebsd.org/changeset/base/336258

Log:
  Use the name added in r336257.
  
  MFC after:	3 days
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/usr.sbin/cpucontrol/amd10h.c

Modified: head/usr.sbin/cpucontrol/amd10h.c
==============================================================================
--- head/usr.sbin/cpucontrol/amd10h.c	Fri Jul 13 19:42:59 2018	(r336257)
+++ head/usr.sbin/cpucontrol/amd10h.c	Fri Jul 13 19:45:12 2018	(r336258)
@@ -129,7 +129,7 @@ amd10h_update(const char *dev, const char *path)
 	}
 	signature = idargs.data[0];
 
-	msrargs.msr = 0x0000008b;
+	msrargs.msr = MSR_PATCH_LEVEL;
 	error = ioctl(devfd, CPUCTL_RDMSR, &msrargs);
 	if (error < 0) {
 		WARN(0, "ioctl(%s)", dev);
@@ -295,7 +295,7 @@ amd10h_update(const char *dev, const char *path)
 		fprintf(stderr, "done.\n");
 	}
 
-	msrargs.msr = 0x0000008b;
+	msrargs.msr = MSR_PATCH_LEVEL;
 	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?201807131945.w6DJjCQ9085479>