From owner-freebsd-alpha Sun Sep 10 0:49:44 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from mail.du.gtn.com (mail.du.gtn.com [194.77.9.57]) by hub.freebsd.org (Postfix) with ESMTP id 7DECF37B424 for ; Sun, 10 Sep 2000 00:49:40 -0700 (PDT) Received: from mail.cicely.de (cicely.de [194.231.9.142]) by mail.du.gtn.com (8.11.0.Beta3/8.11.0.Beta3) with ESMTP id e8A7n8O19425 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified OK); Sun, 10 Sep 2000 09:49:20 +0200 (MET DST) Received: from cicely5.cicely.de (cicely5.cicely.de [fec0::104:200:92ff:fe9b:20e7]) by mail.cicely.de (8.11.0.Beta1/8.11.0.Beta1) with ESMTP id e8A7ngp58504; Sun, 10 Sep 2000 09:49:43 +0200 (CEST) Received: (from ticso@localhost) by cicely5.cicely.de (8.11.0/8.9.2) id e8A7neX18932; Sun, 10 Sep 2000 09:49:40 +0200 (CEST) (envelope-from ticso) Date: Sun, 10 Sep 2000 09:49:39 +0200 From: Bernd Walter To: Peter Wemm Cc: Matthew Jacob , Christian Weisgerber , freebsd-alpha@FreeBSD.ORG Subject: Re: cvs commit: src/sys/pci pcisupport.c (fwd) Message-ID: <20000910094939.A18867@cicely5.cicely.de> References: <20000909141749.A13527@cicely5.cicely.de> <200009100616.e8A6GpG76494@netplex.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200009100616.e8A6GpG76494@netplex.com.au>; from peter@netplex.com.au on Sat, Sep 09, 2000 at 11:16:51PM -0700 Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, Sep 09, 2000 at 11:16:51PM -0700, Peter Wemm wrote: > AHA! I suspected the bwx/swiz mixup was implicated in this, and this > suggests it does have something to do with it. > > Can you try something like this?: cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -g -nostdinc -I- -I. -I../.. -I../../../include -D_KERNEL -include opt_global.h -elf -mno-fp-regs -ffixed-8 -Wa,-mev56 ../../alpha/pci/cia.c ../../alpha/pci/cia.c: In function `cia_attach': ../../alpha/pci/cia.c:493: invalid operands to binary == *** Error code 1 > > Index: cia.c > =================================================================== > RCS file: /home/ncvs/src/sys/alpha/pci/cia.c,v > retrieving revision 1.27 > diff -u -r1.27 cia.c > --- cia.c 2000/09/02 01:05:37 1.27 > +++ cia.c 2000/09/10 06:13:49 > @@ -485,14 +485,17 @@ > if (!platform.iointr) /* XXX */ > set_iointr(alpha_dispatch_intr); > > - if (cia_ispyxis) { > + if (cia_ispyxis) > snprintf(chipset_type, sizeof(chipset_type), "pyxis"); > + else > + snprintf(chipset_type, sizeof(chipset_type), "cia"); > + That's this line: > + if (cia_ispyxis || chipset_bwx || chipset == cia_bwx_chipset) { > chipset_bwx = 1; > chipset_ports = CIA_EV56_BWIO; > chipset_memory = CIA_EV56_BWMEM; > chipset_dense = CIA_PCI_DENSE; > } else { > - snprintf(chipset_type, sizeof(chipset_type), "cia"); > chipset_bwx = 0; > chipset_ports = CIA_PCI_SIO1; > chipset_memory = CIA_PCI_SMEM1; > > I am not certain that this is correct, but we are definately screwing up > the non-pyxis BWX case. This is a sledgehammer approach to see if bwx was > set up earlier on and leave it on, rather than partly resetting it back to > swiz mode but leaving the bwx chipset function pointers. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message