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/arc Pull up to netbsd-1-5 branch



details:   https://anonhg.NetBSD.org/src/rev/6681abb3018a
branches:  netbsd-1-5
changeset: 489032:6681abb3018a
user:      soda <soda%NetBSD.org@localhost>
date:      Thu Aug 10 22:07:46 2000 +0000

description:
Pull up to netbsd-1-5 branch
Approved by: thorpej

disable page zero in the idle loop on untested machines and pica.
this kluge fixes a problem that commands dump core on NEC Image RISCstation
which seems to be OEM of pica.

Revisions pulled up:
 > cvs rdiff -r1.42 -r1.43 syssrc/sys/arch/arc/arc/machdep.c
 > cvs rdiff -r1.13 -r1.14 syssrc/sys/arch/arc/TODO

diffstat:

 sys/arch/arc/TODO          |   8 +++++++-
 sys/arch/arc/arc/machdep.c |  15 ++++++++++++++-
 2 files changed, 21 insertions(+), 2 deletions(-)

diffs (51 lines):

diff -r f314ea528170 -r 6681abb3018a sys/arch/arc/TODO
--- a/sys/arch/arc/TODO Thu Aug 10 22:06:20 2000 +0000
+++ b/sys/arch/arc/TODO Thu Aug 10 22:07:46 2000 +0000
@@ -1,4 +1,4 @@
-$NetBSD: TODO,v 1.13 2000/06/17 09:18:39 soda Exp $
+$NetBSD: TODO,v 1.13.2.1 2000/08/10 22:07:46 soda Exp $
 
 To do list (not in any particular order).
 
@@ -8,6 +8,12 @@
        This version is before _MIPS_PADDR_T_64BIT changes
        and MIPS3_TLB_WIRED_UPAGES changes.     
 
+       "vm_page_zero_enable = FALSE" makes this problem disappeared.
+
+       currently, page zero in the idle loop is also disabled on
+       untested platforms like ESCstation rPC44/Tyne, SNI, Algorithmics
+       for safety.
+
     o  XXX sudden hang up in a few minutes or dozens of minutes.
        2000 Mar 17 -current is OK. Mar 29 is NG.
 
diff -r f314ea528170 -r 6681abb3018a sys/arch/arc/arc/machdep.c
--- a/sys/arch/arc/arc/machdep.c        Thu Aug 10 22:06:20 2000 +0000
+++ b/sys/arch/arc/arc/machdep.c        Thu Aug 10 22:07:46 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.39 2000/06/17 07:29:06 soda Exp $        */
+/*     $NetBSD: machdep.c,v 1.39.2.1 2000/08/10 22:07:47 soda Exp $    */
 /*     $OpenBSD: machdep.c,v 1.36 1999/05/22 21:22:19 weingart Exp $   */
 
 /*
@@ -748,6 +748,19 @@
                mips_L2CachePresent = 1;
                mips_L2CacheSize = 128 * 1024;
 #endif
+               /*
+                * if page zero in the idle loop is enabled,
+                * commands dump core due to incoherent cache.
+                */
+               vm_page_zero_enable = FALSE; /* XXX - should be enabled */
+               break;
+       case DESKSTATION_RPC44:
+       case DESKSTATION_TYNE:
+       case SNI_RM200:
+       case ALGOR_P4032:
+       case ALGOR_P5064:
+               /* XXX - use safe default, since those are not tested. */
+               vm_page_zero_enable = FALSE; /* XXX - should be enabled */
                break;
        case NEC_R94:
                mips_L2CacheSize = 512 * 1024;



Home | Main Index | Thread Index | Old Index