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/sparc/sparc Pullup rev. 1.106->1.107 (approved...



details:   https://anonhg.NetBSD.org/src/rev/597c850b3eb7
branches:  netbsd-1-5
changeset: 489441:597c850b3eb7
user:      pk <pk%NetBSD.org@localhost>
date:      Tue Sep 12 13:43:55 2000 +0000

description:
Pullup rev. 1.106->1.107 (approved by thorpej):

> revision 1.107
> date: 2000/09/10 11:32:04;  author: pk;  state: Exp;  lines: +17 -2
> Turn off page zeroing in the idle loop; an unidentified bug causes (very
> sporadic) user process corruption.

(actually applies to Microsparc 1 machines only).

diffstat:

 sys/arch/sparc/sparc/cpu.c |  19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diffs (47 lines):

diff -r a2a6f7865af8 -r 597c850b3eb7 sys/arch/sparc/sparc/cpu.c
--- a/sys/arch/sparc/sparc/cpu.c        Tue Sep 12 08:43:58 2000 +0000
+++ b/sys/arch/sparc/sparc/cpu.c        Tue Sep 12 13:43:55 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.104 2000/06/05 20:38:25 pk Exp $ */
+/*     $NetBSD: cpu.c,v 1.104.2.1 2000/09/12 13:43:55 pk Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -604,6 +604,7 @@
 void cpumatch_unknown __P((struct cpu_info *, struct module_info *, int));
 void cpumatch_sun4 __P((struct cpu_info *, struct module_info *, int));
 void cpumatch_sun4c __P((struct cpu_info *, struct module_info *, int));
+void cpumatch_ms1 __P((struct cpu_info *, struct module_info *, int));
 void cpumatch_viking __P((struct cpu_info *, struct module_info *, int));
 void cpumatch_hypersparc __P((struct cpu_info *, struct module_info *, int));
 void cpumatch_turbosparc __P((struct cpu_info *, struct module_info *, int));
@@ -986,7 +987,7 @@
 struct module_info module_ms1 = {
        CPUTYP_MS1,
        VAC_NONE,
-       0,
+       cpumatch_ms1,
        getcacheinfo_obp,
        0,
        ms1_mmu_enable,
@@ -1008,6 +1009,20 @@
 };
 
 void
+cpumatch_ms1(sc, mp, node)
+       struct cpu_info *sc;
+       struct module_info *mp;
+       int     node;
+{
+
+       /*
+        * Turn off page zeroing in the idle loop; an unidentified
+        * bug causes (very sporadic) user process corruption.
+        */
+       vm_page_zero_enable = 0;
+}
+
+void
 ms1_mmu_enable()
 {
 }



Home | Main Index | Thread Index | Old Index