NetBSD Problem Report #647
From gnats Sat Dec 17 17:05:04 1994
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id RAA02740 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Sat, 17 Dec 1994 17:05:04 -0800
Message-Id: <199412180052.TAA02082@kolvir.blrc.ma.us>
Date: Sat, 17 Dec 1994 19:52:52 -0500
From: John Kohl <jtk@kolvir.blrc.ma.us>
Reply-To: jtk@kolvir.blrc.ma.us
To: gnats-bugs@netbsd.org
Cc: port-i386@netbsd.org
Subject: bogus kernel crash dumps on i386
X-Send-Pr-Version: 3.2
>Number: 647
>Category: port-i386
>Synopsis: crash dumps on i386 to wd are bogus
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: gnats-admin
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Dec 17 17:20:02 +0000 1994
>Closed-Date: Sun Aug 13 03:54:18 +0000 1995
>Last-Modified: Sun Aug 13 03:54:40 +0000 1995
>Originator: John Kohl
>Release: 1.0
>Organization:
NetBSD Kernel Hackers `R` Us
>Environment:
System: NetBSD kolvir 1.0A NetBSD 1.0A (KOLVIR) #36: Sat Dec 17 08:26:43 EST 1994 jtk@kolvir:/u1/NetBSD-current/src/sys/arch/i386/compile/KOLVIR i386
>Description:
crash dumps to wd drives are broken. The attempt to set up memory
mapping to go through all pages in memory is incorrect.
>How-To-Repeat:
Try to savecore from a crashdump on a wd drive.
>Fix:
--- 1.1 1994/12/18 00:48:29
+++ wd.c 1994/12/18 00:49:13
@@ -1433,6 +1433,7 @@
int unit, part;
long rblkno, nblks;
char *addr;
+ vm_offset_t lastframe = (vm_offset_t) -1;
static wddoingadump = 0;
extern caddr_t CADDR1;
extern pt_entry_t *CMAP1;
@@ -1525,8 +1526,12 @@
#ifdef notdef /* Cannot use this since this address was mapped differently. */
pmap_enter(kernel_pmap, CADDR1, trunc_page(addr), VM_PROT_READ, TRUE);
#else
- *CMAP1 = PG_V | PG_KW | ctob((long)addr);
- tlbflush();
+ if (((vm_offset_t)addr & PG_FRAME) != lastframe) {
+ /* first DEV_BSIZE block in a new page frame */
+ *CMAP1 = PG_V | PG_KW | ((vm_offset_t)addr & PG_FRAME);
+ tlbflush();
+ lastframe = (vm_offset_t)addr & PG_FRAME;
+ }
#endif
outsw(wdc->sc_iobase+wd_data, CADDR1 + ((int)addr & PGOFSET),
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: mycroft
State-Changed-When: Sat Aug 12 23:54:18 EDT 1995
State-Changed-Why:
This has been fixed for a while.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.