Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips Fix to actually compile MIPS1 only.



details:   https://anonhg.NetBSD.org/src/rev/f56e18efc313
branches:  trunk
changeset: 495386:f56e18efc313
user:      jeffs <jeffs%NetBSD.org@localhost>
date:      Thu Jul 27 08:28:36 2000 +0000

description:
Fix to actually compile MIPS1 only.

diffstat:

 sys/arch/mips/mips/mips_machdep.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 4987be064824 -r f56e18efc313 sys/arch/mips/mips/mips_machdep.c
--- a/sys/arch/mips/mips/mips_machdep.c Thu Jul 27 06:28:06 2000 +0000
+++ b/sys/arch/mips/mips/mips_machdep.c Thu Jul 27 08:28:36 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mips_machdep.c,v 1.96 2000/07/27 06:28:06 jeffs Exp $  */
+/*     $NetBSD: mips_machdep.c,v 1.97 2000/07/27 08:28:36 jeffs Exp $  */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -52,7 +52,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.96 2000/07/27 06:28:06 jeffs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.97 2000/07/27 08:28:36 jeffs Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_compat_ultrix.h"
@@ -662,7 +662,6 @@
        struct exec_package *pack;
        u_long stack;
 {
-       int szsigcode = pack->ep_emul->e_esigcode - pack->ep_emul->e_sigcode;
        struct frame *f = (struct frame *)p->p_md.md_regs;
 
        /*
@@ -670,6 +669,8 @@
         */
 #ifdef MIPS3
        if (CPUISMIPS3) {
+               int szsigcode = pack->ep_emul->e_esigcode -
+                               pack->ep_emul->e_sigcode;
                MachFlushDCache((vaddr_t)p->p_sigacts->ps_sigcode, szsigcode);
                MachFlushICache((vaddr_t)p->p_sigacts->ps_sigcode, szsigcode);
        }



Home | Main Index | Thread Index | Old Index