Subject: port-hp300/559: hp300 swapgeneric.c broken - panic: jump to zero
To: None <gnats-admin@sun-lamp.cs.berkeley.edu>
From: None <thorpej@cs.orst.edu>
List: netbsd-bugs
Date: 11/06/1994 13:05:03
>Number: 559
>Category: port-hp300
>Synopsis: hp300 swapgeneric.c broken - panic: jump to zero
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 6 13:05:01 1994
>Originator:
>Organization:
--------------------------------------------------------------------------
Jason R. Thorpe thorpej@cs.orst.edu 758-2003
Systems Administrator CSWest Room 5 737-5567
CS Dept, Oregon State University http://www.cs.orst.edu/~thorpej
"I brought my BOWLING BALL -- and some DRUGS!"
-- ztp
>Release: 1.0
>Environment:
System: NetBSD helix 1.0 NetBSD 1.0 (HELIX) #42: Fri Nov 4 00:05:31 PST 1994 thorpej@helix:/usr/src/sys/arch/hp300/compile/HELIX hp300
>Description:
Well - speaks for itself, really.
>How-To-Repeat:
Put the following in your kernel config and try to use the resulting
kernel:
config netbsd swap generic
>Fix:
Well, after chatting with cgd on the phone for a bit, he suggested
the following, which works quite well...
(to .../hp300/swapgeneric.c)
*** swapgeneric.c.orig Sat Nov 5 21:30:40 1994
--- swapgeneric.c Sat Nov 5 23:27:00 1994
***************
*** 51,57 ****
int nswap;
struct swdevt swdevt[] = {
{ -1, 1, 0 },
! { 0, 0, 0 },
};
int dmmin, dmmax, dmtext;
--- 51,57 ----
int nswap;
struct swdevt swdevt[] = {
{ -1, 1, 0 },
! { NODEV, 0, 0 },
};
int dmmin, dmmax, dmtext;
>Audit-Trail:
>Unformatted: