Source-Changes-HG archive

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

[src/nathanw_sa]: src/sys/arch/mips/mips LWPify.



details:   https://anonhg.NetBSD.org/src/rev/e519e19a9c75
branches:  nathanw_sa
changeset: 506092:e519e19a9c75
user:      gmcgarry <gmcgarry%NetBSD.org@localhost>
date:      Fri Aug 02 09:26:12 2002 +0000

description:
LWPify.

diffstat:

 sys/arch/mips/mips/mips_emul.c |  12 ++++++------
 sys/arch/mips/mips/trap.c      |  14 +++++++-------
 2 files changed, 13 insertions(+), 13 deletions(-)

diffs (89 lines):

diff -r 48f2fc56eed4 -r e519e19a9c75 sys/arch/mips/mips/mips_emul.c
--- a/sys/arch/mips/mips/mips_emul.c    Fri Aug 02 08:39:02 2002 +0000
+++ b/sys/arch/mips/mips/mips_emul.c    Fri Aug 02 09:26:12 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mips_emul.c,v 1.2.2.2 2002/08/01 02:42:34 nathanw Exp $ */
+/*     $NetBSD: mips_emul.c,v 1.2.2.3 2002/08/02 09:26:14 gmcgarry Exp $ */
 
 /*
  * Copyright (c) 1999 Shuichiro URATA.  All rights reserved.
@@ -248,7 +248,7 @@
        default:
                frame->f_regs[CAUSE] = cause;
                frame->f_regs[BADVADDR] = opc;
-               trapsignal(curproc, SIGSEGV, opc);
+               trapsignal(curlwp, SIGSEGV, opc);
        }
 }
 
@@ -261,7 +261,7 @@
 
        frame->f_regs[CAUSE] = cause;
        frame->f_regs[BADVADDR] = vaddr;
-       trapsignal(curproc, SIGSEGV, vaddr);
+       trapsignal(curlwp, SIGSEGV, vaddr);
 }
 
 static __inline void
@@ -292,7 +292,7 @@
        if (vaddr > VM_MAX_ADDRESS || vaddr & 0x3) {
                frame->f_regs[CAUSE] = cause;
                frame->f_regs[BADVADDR] = vaddr;
-               trapsignal(curproc, SIGBUS, vaddr);
+               trapsignal(curlwp, SIGBUS, vaddr);
                return;
        }
 
@@ -327,7 +327,7 @@
        if (vaddr > VM_MAX_ADDRESS || vaddr & 0x3) {
                frame->f_regs[CAUSE] = cause;
                frame->f_regs[BADVADDR] = vaddr;
-               trapsignal(curproc, SIGBUS, vaddr);
+               trapsignal(curlwp, SIGBUS, vaddr);
                return;
        }
 
@@ -375,7 +375,7 @@
        default:
                frame->f_regs[CAUSE] = cause;
                frame->f_regs[BADVADDR] = frame->f_regs[PC];
-               trapsignal(curproc, SIGSEGV, frame->f_regs[PC]);
+               trapsignal(curlwp, SIGSEGV, frame->f_regs[PC]);
        }
 
        update_pc(frame, cause);
diff -r 48f2fc56eed4 -r e519e19a9c75 sys/arch/mips/mips/trap.c
--- a/sys/arch/mips/mips/trap.c Fri Aug 02 08:39:02 2002 +0000
+++ b/sys/arch/mips/mips/trap.c Fri Aug 02 09:26:12 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.165.2.16 2002/08/01 02:42:35 nathanw Exp $  */
+/*     $NetBSD: trap.c,v 1.165.2.17 2002/08/02 09:26:12 gmcgarry Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -44,7 +44,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.165.2.16 2002/08/01 02:42:35 nathanw Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.165.2.17 2002/08/02 09:26:12 gmcgarry Exp $");
 
 #include "opt_cputype.h"       /* which mips CPU levels do we support? */
 #include "opt_ktrace.h"
@@ -490,11 +490,11 @@
                if ((cause & MIPS_CR_COP_ERR) == 0x10000000) {
                        struct frame *f;
 
-                       f = (struct frame *)p->p_md.md_regs;
-                       savefpregs(fpcurproc);          /* yield FPA */
-                       loadfpregs(p);                  /* load FPA */
-                       fpcurproc = p;
-                       p->p_md.md_flags |= MDP_FPUSED;
+                       f = (struct frame *)l->l_md.md_regs;
+                       savefpregs(fpcurlwp);           /* yield FPA */
+                       loadfpregs(l);                  /* load FPA */
+                       fpcurlwp = l;
+                       l->l_md.md_flags |= MDP_FPUSED;
                        f->f_regs[SR] |= MIPS_SR_COP_1_BIT;
                } else
 #endif



Home | Main Index | Thread Index | Old Index