NetBSD Problem Report #1828

From gnats  Fri Dec  8 15:25:03 1995
Received: from Lestat.PDX.Xenotropic.COM by pain.lcs.mit.edu (8.6.12/8.6.9) with ESMTP id PAA19813 for <gnats-bugs@gnats.netbsd.org>; Fri, 8 Dec 1995 15:06:22 -0500
Message-Id: <199512082005.MAA02187@Lestat.PDX.Xenotropic.COM>
Date: Fri, 8 Dec 1995 12:05:56 -0800
From: mcdermj@xenotropic.com
Reply-To: mcdermj@xenotropic.com
To: gnats-bugs@gnats.netbsd.org
Subject: DS[23]100 kernel won't work without the DS5000 option set
X-Send-Pr-Version: 3.95

>Number:         1828
>Category:       port-pmax
>Synopsis:       DS[23]100 Kernel won't work without the DS5000 option set
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 08 15:35:01 +0000 1995
>Closed-Date:    Sat Jun 15 05:02:50 +0000 1996
>Last-Modified:  Sat Jun 15 09:04:13 +0000 1996
>Originator:     Jeremy C. McDermond
>Release:        1.1
>Organization:
Xenotropic Imaging Systems

>Environment:

System: NetBSD Lestat.PDX.Xenotropic.COM 1.1 NetBSD 1.1 (LESTAT) #2: Thu Dec 7 20:10:34 PST 1995 root@Lestat.PDX.Xenotropic.COM:/usr/local/plan9/src/sys/arch/pmax/compile/LESTAT pmax


>Description:
	When trying to compile a kernel for a DS[23]100 without support for the
	DS5000 architectures, the exclusion of the DS5000 option and the 
	turbochannel bus causes compiling to fail.

>How-To-Repeat:
	Compile kernel without DS5000 define

>Fix:
	Apply the following patch to the /usr/src/sys/arch/pmax/pmax directory,
	it changes the following files: machdep.c conf-glue.c cpu_cons.c

*** cpu_cons.c.orig	Thu Dec  7 19:53:07 1995
--- cpu_cons.c	Fri Dec  8 11:52:24 1995
***************
*** 378,383 ****
--- 378,384 ----
  consprobetc(preferred_slot)
  	int preferred_slot;
  {
+ #ifdef DS5000
  	int slot;

  	struct tc_cpu_desc * sc_desc;
***************
*** 399,404 ****
--- 400,406 ----
  		if (consprobeslot(slot))
  			return (1);
  	}
+ #endif
  	return (0);
  }

***************
*** 415,420 ****
--- 417,423 ----
  	char name[20];
  	struct tc_cpu_desc * sc_desc;

+ #ifdef DS5000
  	if (slot < 0 || ((sc_desc = cpu_tcdesc(pmax_boardtype)) == NULL))
  		return 0;
  	slotaddr = (void *)sc_desc->tcd_slots[slot].tsd_dense;
***************
*** 461,466 ****
--- 464,470 ----
  		return (1);
  	}
  #endif /* NCFB */
+ #endif /* DS5000 */
  	return (0);
  }

*** machdep.c.orig	Thu Dec  7 18:17:45 1995
--- machdep.c	Thu Dec  7 19:52:57 1995
***************
*** 1226,1235 ****
--- 1226,1237 ----
  	int i;

  	/* Reset after bus errors during probe */
+ #ifdef DS5000
  	if (Mach_reset_addr) {
  		*Mach_reset_addr = 0;
  		MachEmptyWriteBuffer();
  	}
+ #endif

  	/* clear any pending interrupts */
  	switch (pmax_boardtype) {
***************
*** 1326,1332 ****
  }


- #ifdef DS5000

  /*
   * Enable an interrupt from a slot on the KN01 internal bus.
--- 1328,1333 ----
***************
*** 1352,1357 ****
--- 1353,1359 ----
  		tc_slot_info[slotno].sc = 0;
  	}
  }
+ #ifdef DS5000


  /*
*** conf-glue.c.orig	Fri Dec  8 11:55:32 1995
--- conf-glue.c	Thu Dec  7 19:02:23 1995
***************
*** 75,80 ****
--- 75,81 ----
  { &rzdriver,	&siidriver,	4,	0,	4,	0,	1,	0x0 },
  { &tzdriver,	&siidriver,	0,	0,	5,	0,	0,	0x0 },
  { &tzdriver,	&siidriver,	1,	0,	6,	0,	0,	0x0 },
+ #if NASC > 0
  { &rzdriver,	&ascdriver,	0,	0,	0,	0,	1,	0x0 },
  { &rzdriver,	&ascdriver,	1,	0,	1,	0,	1,	0x0 },
  { &rzdriver,	&ascdriver,	2,	0,	2,	0,	1,	0x0 },
***************
*** 82,87 ****
--- 83,89 ----
  { &rzdriver,	&ascdriver,	4,	0,	4,	0,	1,	0x0 },
  { &tzdriver,	&ascdriver,	0,	0,	5,	0,	0,	0x0 },
  { &tzdriver,	&ascdriver,	1,	0,	6,	0,	0,	0x0 },
+ #endif
  0
  };

>Release-Note:
>Audit-Trail:

Responsible-Changed-From-To: gnats-admin->gnats-admin
Responsible-Changed-By: jtc
Responsible-Changed-When: Thu Feb  1 12:14:17 1996
Responsible-Changed-Why:
Refiled from pending to port-pmax.

State-Changed-From-To: open->closed
State-Changed-By: jonathan
State-Changed-When: Sat Jun 15 05:02:50 1996
State-Changed-Why:
Fixed, by eliminating the DS5000 kernel option and all uses of #ifdef DS5000.

The NetBSD/pmax kernel now uses the "flags" attribute of the "tc" device,
and "#if NTC > 0" instead.
>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.