Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/x86 Forgot switch cases for AMD.



details:   https://anonhg.NetBSD.org/src/rev/525387d0707f
branches:  trunk
changeset: 322892:525387d0707f
user:      maxv <maxv%NetBSD.org@localhost>
date:      Tue May 22 16:36:19 2018 +0000

description:
Forgot switch cases for AMD.

diffstat:

 sys/arch/x86/x86/spectre.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r d600293a2566 -r 525387d0707f sys/arch/x86/x86/spectre.c
--- a/sys/arch/x86/x86/spectre.c        Tue May 22 14:38:10 2018 +0000
+++ b/sys/arch/x86/x86/spectre.c        Tue May 22 16:36:19 2018 +0000
@@ -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 @@
                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,



Home | Main Index | Thread Index | Old Index