Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Enable EagerFPU on Xen PV. Should work as-is. Sent ...



details:   https://anonhg.NetBSD.org/src/rev/aa60225106ec
branches:  trunk
changeset: 451331:aa60225106ec
user:      maxv <maxv%NetBSD.org@localhost>
date:      Wed May 15 18:27:51 2019 +0000

description:
Enable EagerFPU on Xen PV. Should work as-is. Sent on port-amd64@.

diffstat:

 sys/arch/amd64/amd64/locore.S |  4 +---
 sys/arch/i386/i386/locore.S   |  6 ++----
 sys/arch/x86/x86/identcpu.c   |  8 ++------
 3 files changed, 5 insertions(+), 13 deletions(-)

diffs (102 lines):

diff -r abc1c0b2f814 -r aa60225106ec sys/arch/amd64/amd64/locore.S
--- a/sys/arch/amd64/amd64/locore.S     Wed May 15 17:35:02 2019 +0000
+++ b/sys/arch/amd64/amd64/locore.S     Wed May 15 18:27:51 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.182 2019/05/15 17:31:41 maxv Exp $        */
+/*     $NetBSD: locore.S,v 1.183 2019/05/15 18:27:51 maxv Exp $        */
 
 /*
  * Copyright-o-rama!
@@ -1147,7 +1147,6 @@
        movq    %r12,%rsi
        callq   _C_LABEL(x86_dbregs_switch)
 
-#ifndef XENPV
        movb    _C_LABEL(x86_fpu_eager),%dl
        testb   %dl,%dl
        jz      .Lno_eagerfpu
@@ -1155,7 +1154,6 @@
        movq    %r12,%rsi
        callq   _C_LABEL(fpu_eagerswitch)
 .Lno_eagerfpu:
-#endif
 
        /* Don't bother with the rest if switching to a system process. */
        testl   $LW_SYSTEM,L_FLAG(%r12)
diff -r abc1c0b2f814 -r aa60225106ec sys/arch/i386/i386/locore.S
--- a/sys/arch/i386/i386/locore.S       Wed May 15 17:35:02 2019 +0000
+++ b/sys/arch/i386/i386/locore.S       Wed May 15 18:27:51 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.166 2019/03/09 08:42:25 maxv Exp $        */
+/*     $NetBSD: locore.S,v 1.167 2019/05/15 18:27:51 maxv Exp $        */
 
 /*
  * Copyright-o-rama!
@@ -128,7 +128,7 @@
  */
 
 #include <machine/asm.h>
-__KERNEL_RCSID(0, "$NetBSD: locore.S,v 1.166 2019/03/09 08:42:25 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: locore.S,v 1.167 2019/05/15 18:27:51 maxv Exp $");
 
 #include "opt_copy_symtab.h"
 #include "opt_ddb.h"
@@ -1137,7 +1137,6 @@
        call    _C_LABEL(x86_dbregs_switch)
        addl    $8,%esp
 
-#ifndef XENPV
        pushl   %edx
        movb    _C_LABEL(x86_fpu_eager),%dl
        testb   %dl,%dl
@@ -1148,7 +1147,6 @@
        addl    $8,%esp
 .Lno_eagerfpu:
        popl    %edx
-#endif
 
        /* Don't bother with the rest if switching to a system process. */
        testl   $LW_SYSTEM,L_FLAG(%edi)
diff -r abc1c0b2f814 -r aa60225106ec sys/arch/x86/x86/identcpu.c
--- a/sys/arch/x86/x86/identcpu.c       Wed May 15 17:35:02 2019 +0000
+++ b/sys/arch/x86/x86/identcpu.c       Wed May 15 18:27:51 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: identcpu.c,v 1.88 2019/02/11 18:50:15 cherry Exp $     */
+/*     $NetBSD: identcpu.c,v 1.89 2019/05/15 18:27:51 maxv Exp $       */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.88 2019/02/11 18:50:15 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.89 2019/05/15 18:27:51 maxv Exp $");
 
 #include "opt_xen.h"
 
@@ -744,7 +744,6 @@
 #endif
 }
 
-#ifndef XENPV
 static void
 cpu_probe_fpu_leak(struct cpu_info *ci)
 {
@@ -786,16 +785,13 @@
                break;
        }
 }
-#endif
 
 static void
 cpu_probe_fpu(struct cpu_info *ci)
 {
        u_int descs[4];
 
-#ifndef XENPV
        cpu_probe_fpu_leak(ci);
-#endif
 
        x86_fpu_save = FPU_SAVE_FSAVE;
 



Home | Main Index | Thread Index | Old Index