Module Name: src
Committed By: maxv
Date: Tue May 22 16:36:19 UTC 2018
Modified Files:
src/sys/arch/x86/x86: spectre.c
Log Message:
Forgot switch cases for AMD.
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/x86/x86/spectre.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/x86/x86/spectre.c
diff -u src/sys/arch/x86/x86/spectre.c:1.15 src/sys/arch/x86/x86/spectre.c:1.16
--- src/sys/arch/x86/x86/spectre.c:1.15 Tue May 22 10:20:04 2018
+++ src/sys/arch/x86/x86/spectre.c Tue May 22 16:36:19 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: spectre.c,v 1.15 2018/05/22 10:20:04 maxv Exp $ */
+/* $NetBSD: spectre.c,v 1.16 2018/05/22 16:36:19 maxv Exp $ */
/*
* Copyright (c) 2018 NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spectre.c,v 1.15 2018/05/22 10:20:04 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spectre.c,v 1.16 2018/05/22 16:36:19 maxv Exp $");
#include "opt_spectre.h"
@@ -520,6 +520,8 @@ static int mitigation_v4_change(bool ena
mutex_exit(&cpu_lock);
return EOPNOTSUPP;
case V4_MITIGATION_INTEL_SSBD:
+ case V4_MITIGATION_AMD_NONARCH_F15H:
+ case V4_MITIGATION_AMD_NONARCH_F16H:
printf("[+] %s SpectreV4 Mitigation...",
enabled ? "Enabling" : "Disabling");
xc = xc_broadcast(0, mitigation_v4_change_cpu,