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 Use macro.



details:   https://anonhg.NetBSD.org/src/rev/47311f5d70d5
branches:  trunk
changeset: 965054:47311f5d70d5
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Fri Aug 30 13:29:17 2019 +0000

description:
Use macro.

diffstat:

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

diffs (27 lines):

diff -r 23103a6ca82a -r 47311f5d70d5 sys/arch/x86/x86/spectre.c
--- a/sys/arch/x86/x86/spectre.c        Fri Aug 30 13:12:24 2019 +0000
+++ b/sys/arch/x86/x86/spectre.c        Fri Aug 30 13:29:17 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: spectre.c,v 1.29 2019/06/01 06:54:28 maxv Exp $        */
+/*     $NetBSD: spectre.c,v 1.30 2019/08/30 13:29:17 msaitoh Exp $     */
 
 /*
  * Copyright (c) 2018-2019 NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spectre.c,v 1.29 2019/06/01 06:54:28 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spectre.c,v 1.30 2019/08/30 13:29:17 msaitoh Exp $");
 
 #include "opt_spectre.h"
 
@@ -435,7 +435,7 @@
                                break;
                        }
                        x86_cpuid(0x80000008, descs);
-                       if (descs[1] & __BIT(26)) {
+                       if (descs[1] & CPUID_CAPEX_SSB_NO) {
                                /* Not vulnerable to SpectreV4. */
                                v4_mitigation_method = V4_MITIGATION_AMD_SSB_NO;
                                return;



Home | Main Index | Thread Index | Old Index