NetBSD Problem Report #14099

Received: (qmail 28670 invoked from network); 29 Sep 2001 18:39:20 -0000
Message-Id: <200109291837.f8TIbnt00699@localhost>
Date: Sun, 30 Sep 2001 03:37:49 +0900 (JST)
From: tanh@tk.airnet.ne.jp
Reply-To: tanh@tk.airnet.ne.jp
To: gnats-bugs@gnats.netbsd.org
Subject: typo in pmap.c
X-Send-Pr-Version: 3.95

>Number:         14099
>Category:       port-m68k
>Synopsis:       typo in pmap.c
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    chs
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 29 18:40:00 +0000 2001
>Closed-Date:    Sat Sep 29 22:02:10 +0000 2001
>Last-Modified:  Sat Sep 29 22:02:10 +0000 2001
>Originator:     Hiroki Tanikawa
>Release:        NetBSD-current Sep 22 2001
>Organization:
>Environment:
System: NetBSD misa 1.5Y NetBSD 1.5Y (MISA) #32: Mon Sep 24 02:40:31 JST 2001
Architecture: m68k
Machine: mac68k

Macintosh Centris 650 with 68040 and 72MB RAM

>Description:

Kernel panics while making current.

panic: MMU fault
Stopped in pid 209 (make) at _cpu_Debugger+0x6: unlk a6
db> t
_cpu_Debugger(f4582008,8,6e17d84,37290,6e17d70) + 6
_panic(f0ea1,5,66960,0,0) + 9c
_trap(8,545,f4585019) + 238
_uvmfault_anonget(6e17f0c,6df2a2c,66960) + 4c
_uvm_fault(882b40,a7c000,0,3) + 5c2
_trap(8,481,a7cffc) + 4f0
faultstkadj() + 0

>How-To-Repeat:

make build or rsync /usr/src from another machine.
If one process uses the memory which is about 10MB, kernel panics.

>Fix:

This is a patch for mac68k.
I think a same fix is needed for 
other ports (amiga, atari, cesfic, hp300, luna68k, news68k, next68k).

Index: pmap.c
===================================================================
RCS file: /cvs/cvsroot/syssrc/sys/arch/mac68k/mac68k/pmap.c,v
retrieving revision 1.79
diff -c -r1.79 pmap.c
*** pmap.c      2001/09/10 21:19:17     1.79
--- pmap.c      2001/09/29 16:28:55
***************
*** 1400,1406 ****
                                 */

                                *pte = PG_NV;
!                               TBIS(va);
                        }
                        pte++;
                        sva += NBPG;
--- 1400,1406 ----
                                 */

                                *pte = PG_NV;
!                               TBIS(sva);
                        }
                        pte++;
                        sva += NBPG;

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: chs 
State-Changed-When: Sat Sep 29 15:00:59 PDT 2001 
State-Changed-Why:  
change applied to all 8 copies of the m68k pmap that were wrong. 
thanks very much for figuring this out! 


Responsible-Changed-From-To: port-m68k-maintainer->chs 
Responsible-Changed-By: chs 
Responsible-Changed-When: Sat Sep 29 15:00:59 PDT 2001 
Responsible-Changed-Why:  
my bug 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.