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 x86: Label boolean is_64bit argument to fpu...



details:   https://anonhg.NetBSD.org/src/rev/1a218c656fd8
branches:  trunk
changeset: 373748:1a218c656fd8
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Feb 25 18:04:25 2023 +0000

description:
x86: Label boolean is_64bit argument to fpu_area_restore.

No functional change intended.

diffstat:

 sys/arch/x86/x86/fpu.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 46431e09dc33 -r 1a218c656fd8 sys/arch/x86/x86/fpu.c
--- a/sys/arch/x86/x86/fpu.c    Sat Feb 25 17:37:09 2023 +0000
+++ b/sys/arch/x86/x86/fpu.c    Sat Feb 25 18:04:25 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu.c,v 1.80 2023/02/25 13:57:37 riastradh Exp $       */
+/*     $NetBSD: fpu.c,v 1.81 2023/02/25 18:04:25 riastradh Exp $       */
 
 /*
  * Copyright (c) 2008, 2019 The NetBSD Foundation, Inc.  All
@@ -96,7 +96,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu.c,v 1.80 2023/02/25 13:57:37 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu.c,v 1.81 2023/02/25 18:04:25 riastradh Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -416,7 +416,7 @@
        /*
         * Zero the FPU registers and install safe control words.
         */
-       fpu_area_restore(&safe_fpu, x86_xsave_features, false);
+       fpu_area_restore(&safe_fpu, x86_xsave_features, /*is_64bit*/false);
 }
 
 /*
@@ -446,7 +446,7 @@
         * through Spectre-class attacks to userland, even if there are
         * no bugs in fpu state management.
         */
-       fpu_area_restore(&zero_fpu, x86_xsave_features, false);
+       fpu_area_restore(&zero_fpu, x86_xsave_features, /*is_64bit*/false);
 
        /*
         * Set CR0_TS again so that the kernel can't accidentally use



Home | Main Index | Thread Index | Old Index