Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Apr 2018 01:44:12 +0000 (UTC)
From:      Eugene Grosbein <eugen@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r466703 - in head/sysutils/cpupdate: . files
Message-ID:  <201804070144.w371iCuo020246@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eugen
Date: Sat Apr  7 01:44:11 2018
New Revision: 466703
URL: https://svnweb.freebsd.org/changeset/ports/466703

Log:
  Unbreak sysutils/cpupdate after r466680 that mistakenly committed Makefile changes only.
  
  Reported by:	StariKarp <starikarp@yandex.com>

Modified:
  head/sysutils/cpupdate/distinfo
  head/sysutils/cpupdate/files/cpupdate.in

Modified: head/sysutils/cpupdate/distinfo
==============================================================================
--- head/sysutils/cpupdate/distinfo	Sat Apr  7 00:35:14 2018	(r466702)
+++ head/sysutils/cpupdate/distinfo	Sat Apr  7 01:44:11 2018	(r466703)
@@ -1,7 +1,7 @@
-TIMESTAMP = 1522754487
+TIMESTAMP = 1523034276
 SHA256 (microcode-20180312.tgz) = 0b381face2df1b0a829dc4fa8fa93f47f39e11b1c9c22ebd44f8614657c1e779
 SIZE (microcode-20180312.tgz) = 3789662
 SHA256 (kernschmelze-cpupdate-g20180323-7633a43_GH0.tar.gz) = b6a595223b7e70fbdf170b51d6aee4d907b36e080c18d076b6a17ae16bd63d28
 SIZE (kernschmelze-cpupdate-g20180323-7633a43_GH0.tar.gz) = 4566592
-SHA256 (platomav-CPUMicrocodes-8f56a62_GH0.tar.gz) = bb65515816b7c255b8b3f0d052c2d63e4cc244723d2c81b5a5e3c504ad80886b
-SIZE (platomav-CPUMicrocodes-8f56a62_GH0.tar.gz) = 4602379
+SHA256 (platomav-CPUMicrocodes-079248c_GH0.tar.gz) = 89c875f5467409af543b83abe069a00bc29a7933a64a30450a5b06ab0cfa0c7c
+SIZE (platomav-CPUMicrocodes-079248c_GH0.tar.gz) = 4602296

Modified: head/sysutils/cpupdate/files/cpupdate.in
==============================================================================
--- head/sysutils/cpupdate/files/cpupdate.in	Sat Apr  7 00:35:14 2018	(r466702)
+++ head/sysutils/cpupdate/files/cpupdate.in	Sat Apr  7 01:44:11 2018	(r466703)
@@ -12,6 +12,9 @@
 #
 # cpupdate_enable (bool):		Set to NO by default.
 #					Set it to YES to enable cpupdate.
+# cpupdate_irbs_enable (bool):		Enable Indirect Branch Restricted
+#					Speculation after start of cpupdate.
+#					Default is YES.
 # cpupdate_flags (string):		Command line flags for cpupdate.
 #					Default is "-w -u".
 
@@ -19,11 +22,18 @@
 
 name=cpupdate
 rcvar=cpupdate_enable
+start_postcmd="cpupdate_poststart"
 
 load_rc_config $name
 
 : ${cpupdate_enable:="NO"}
 : ${cpupdate_flags="-w -u"}
+: ${cpupdate_irbs_enable="YES"}
 command=%%PREFIX%%/sbin/${name}
+
+cpupdate_poststart() {
+  checkyesno cpupdate_irbs_enable && sysctl -i hw.ibrs_disable=0
+  return 0
+}
 
 run_rc_command "$1"



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