Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/arch/sparc64/sparc64 Pullup 1.10 [eeh]:



details:   https://anonhg.NetBSD.org/src/rev/916517d5597d
branches:  netbsd-1-5
changeset: 489780:916517d5597d
user:      tv <tv%NetBSD.org@localhost>
date:      Tue Oct 17 02:13:41 2000 +0000

description:
Pullup 1.10 [eeh]:
UltraSPARC machines don't have FP queues.  Don't let userland code set them.
It tends to break the FPU emulation code.

diffstat:

 sys/arch/sparc64/sparc64/process_machdep.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 805cb098c69b -r 916517d5597d sys/arch/sparc64/sparc64/process_machdep.c
--- a/sys/arch/sparc64/sparc64/process_machdep.c        Tue Oct 17 02:11:30 2000 +0000
+++ b/sys/arch/sparc64/sparc64/process_machdep.c        Tue Oct 17 02:13:41 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: process_machdep.c,v 1.9 2000/01/10 03:53:22 eeh Exp $ */
+/*     $NetBSD: process_machdep.c,v 1.9.4.1 2000/10/17 02:13:41 tv Exp $ */
 
 /*
  * Copyright (c) 1993 The Regents of the University of California.
@@ -214,6 +214,8 @@
 
                /* NOTE: struct fpreg == struct fpstate */
                bcopy(regs, p->p_md.md_fpstate, sizeof(struct fpreg64));
+               statep = p->p_md.md_fpstate;
+               statep->fs_qsize = 0;
                return 0;
        }
        /* 32-bit mode -- copy in & convert 32-bit fregs */
@@ -222,6 +224,7 @@
        for (i=0; i<32; i++)
                statep->fs_regs[i] = regp->fr_regs[i];
        statep->fs_fsr = regp->fr_fsr;
+       statep->fs_qsize = 0;
 
        return 0;
 }



Home | Main Index | Thread Index | Old Index