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 mips1 doesn't have native LL/SC instructi...



details:   https://anonhg.NetBSD.org/src/rev/e0f98ba2fa62
branches:  trunk
changeset: 534827:e0f98ba2fa62
user:      gmcgarry <gmcgarry%NetBSD.org@localhost>
date:      Sun Aug 04 01:43:03 2002 +0000

description:
mips1 doesn't have native LL/SC instructions.

diffstat:

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

diffs (28 lines):

diff -r 5d0bac930b54 -r e0f98ba2fa62 sys/arch/mips/mips/mips_machdep.c
--- a/sys/arch/mips/mips/mips_machdep.c Sun Aug 04 01:41:23 2002 +0000
+++ b/sys/arch/mips/mips/mips_machdep.c Sun Aug 04 01:43:03 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mips_machdep.c,v 1.137 2002/08/04 01:41:25 gmcgarry Exp $      */
+/*     $NetBSD: mips_machdep.c,v 1.138 2002/08/04 01:43:03 gmcgarry Exp $      */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -120,7 +120,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.137 2002/08/04 01:41:25 gmcgarry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.138 2002/08/04 01:43:03 gmcgarry Exp $");
 
 #include "opt_cputype.h"
 #include "opt_compat_netbsd.h"
@@ -831,7 +831,8 @@
         */
        mips_cpu_flags = mycpu->cpu_flags;
        mips_has_r4k_mmu = mips_cpu_flags & CPU_MIPS_R4K_MMU;
-       mips_has_llsc = !(mips_cpu_flags & CPU_MIPS_NO_LLSC);
+       mips_has_llsc =
+           (CPUISMIPS3 ? !(mips_cpu_flags & CPU_MIPS_NO_LLSC) : 0);
 
        if (mycpu->cpu_flags & CPU_MIPS_HAVE_SPECIAL_CCA) {
                uint32_t cca;



Home | Main Index | Thread Index | Old Index