diff options
author | eugen <eugen@FreeBSD.org> | 2018-04-07 09:44:11 +0800 |
---|---|---|
committer | eugen <eugen@FreeBSD.org> | 2018-04-07 09:44:11 +0800 |
commit | 0c5c448675b797854d93df9a40ef81364d809bd1 (patch) | |
tree | d50a717f11bcd5aed5c825743bccd59c74da8f33 /sysutils/cpupdate | |
parent | a0334d04ceceae77d393bb5074ee61d332a8a7d0 (diff) | |
download | freebsd-ports-gnome-0c5c448675b797854d93df9a40ef81364d809bd1.tar.gz freebsd-ports-gnome-0c5c448675b797854d93df9a40ef81364d809bd1.tar.zst freebsd-ports-gnome-0c5c448675b797854d93df9a40ef81364d809bd1.zip |
Unbreak sysutils/cpupdate after r466680 that mistakenly committed Makefile changes only.
Reported by: StariKarp <starikarp@yandex.com>
Diffstat (limited to 'sysutils/cpupdate')
-rw-r--r-- | sysutils/cpupdate/distinfo | 6 | ||||
-rw-r--r-- | sysutils/cpupdate/files/cpupdate.in | 10 |
2 files changed, 13 insertions, 3 deletions
diff --git a/sysutils/cpupdate/distinfo b/sysutils/cpupdate/distinfo index 6e7bccebfe73..8874ac5f69bf 100644 --- a/sysutils/cpupdate/distinfo +++ b/sysutils/cpupdate/distinfo @@ -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 diff --git a/sysutils/cpupdate/files/cpupdate.in b/sysutils/cpupdate/files/cpupdate.in index 961fbd8f5997..57fdff7d4f4b 100644 --- a/sysutils/cpupdate/files/cpupdate.in +++ b/sysutils/cpupdate/files/cpupdate.in @@ -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" |