Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/i386 Eager FPU on i386.



details:   https://anonhg.NetBSD.org/src/rev/fd7a395ed8d4
branches:  trunk
changeset: 323420:fd7a395ed8d4
user:      maxv <maxv%NetBSD.org@localhost>
date:      Thu Jun 14 17:58:22 2018 +0000

description:
Eager FPU on i386.

diffstat:

 sys/arch/i386/i386/locore.S |  17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diffs (38 lines):

diff -r 208e6ae1c934 -r fd7a395ed8d4 sys/arch/i386/i386/locore.S
--- a/sys/arch/i386/i386/locore.S       Thu Jun 14 17:41:27 2018 +0000
+++ b/sys/arch/i386/i386/locore.S       Thu Jun 14 17:58:22 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.156 2018/01/04 14:02:23 maxv Exp $        */
+/*     $NetBSD: locore.S,v 1.157 2018/06/14 17:58:22 maxv Exp $        */
 
 /*
  * Copyright-o-rama!
@@ -128,7 +128,7 @@
  */
 
 #include <machine/asm.h>
-__KERNEL_RCSID(0, "$NetBSD: locore.S,v 1.156 2018/01/04 14:02:23 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: locore.S,v 1.157 2018/06/14 17:58:22 maxv Exp $");
 
 #include "opt_copy_symtab.h"
 #include "opt_ddb.h"
@@ -1089,6 +1089,19 @@
        movl    %ebp,PCB_EBP(%eax)
 skip_save:
 
+#ifndef XEN
+       pushl   %edx
+       movb    _C_LABEL(x86_fpu_eager),%dl
+       testb   %dl,%dl
+       jz      .Lno_eagerfpu
+       pushl   %edi
+       pushl   %esi
+       call    _C_LABEL(fpu_eagerswitch)
+       addl    $8,%esp
+.Lno_eagerfpu:
+       popl    %edx
+#endif
+
        /* Switch to newlwp's stack. */
        movl    L_PCB(%edi),%ebx
        movl    PCB_EBP(%ebx),%ebp



Home | Main Index | Thread Index | Old Index