From owner-freebsd-alpha@FreeBSD.ORG Fri Aug 12 12:58:48 2005 Return-Path: X-Original-To: freebsd-alpha@freebsd.org Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9694416A41F for ; Fri, 12 Aug 2005 12:58:48 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from mv.twc.weather.com (mv.twc.weather.com [65.212.71.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30A6843D46 for ; Fri, 12 Aug 2005 12:58:47 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from [10.50.40.201] (Not Verified[65.202.103.25]) by mv.twc.weather.com with NetIQ MailMarshal (v6, 0, 3, 8) id ; Fri, 12 Aug 2005 09:13:38 -0400 From: John Baldwin To: freebsd-alpha@freebsd.org Date: Fri, 12 Aug 2005 08:59:24 -0400 User-Agent: KMail/1.8 References: <200508041255.05839.jhb@FreeBSD.org> <200508111722.09584.jhb@FreeBSD.org> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508120859.25404.jhb@FreeBSD.org> Cc: Subject: Re: Locking fixes for dc(4): please test! X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Aug 2005 12:58:48 -0000 On Friday 12 August 2005 12:37 am, Marcel Moolenaar wrote: > On Aug 11, 2005, at 2:22 PM, John Baldwin wrote: > >> ds10% cd /sys/alpha/compile/DS10 > >> ds10% make > >> cc -c -O -pipe -mcpu=ev6 -mieee -Wall -Wredundant-decls -Wnested- > >> externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith - > >> Winline -Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- - > >> I. -I../../.. -I../../../contrib/dev/acpica -I../../../contrib/altq - > >> I../../../contrib/ipfilter -I../../../contrib/pf -I../../../contrib/ > >> dev/ath -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm - > >> I../../../dev/twa -D_KERNEL -include opt_global.h -fno-common - > >> finline-limit=15000 --param inline-unit-growth=100 --param large- > >> function-growth=1000 -mno-fp-regs -ffixed-8 -Wa,-mev6 -ffreestanding > >> -Werror ../../../pci/if_dc.c > >> ../../../pci/if_dc.c: In function `dc_init': > >> ../../../pci/if_dc.c:3407: error: `ifp' undeclared (first use in this > >> function) > >> ../../../pci/if_dc.c:3407: error: (Each undeclared identifier is > >> reported only once > >> ../../../pci/if_dc.c:3407: error: for each function it appears in.) > >> ../../../pci/if_dc.c:3407: error: `mii' undeclared (first use in this > >> function) > >> *** Error code 1 > >> > >> ...The SRM_MEDIA macro is probably only defined on alpha... > > > > Yeah it is, which is why I wanted someone with an Alpha to test > > it. You > > should be able to replace 'ifp' with 'sc->dc_ifp' on line 3407. > > I'll fix the > > patch and re-upload it as well. Thanks. > > Yup, that fixes half the problems. I added the following at line 3403 > to fix the other half: > > struct mii_data *mii; > mii = device_get_softc(sc->dc_miibus); > > With that, if_dc seems to work fine. haven't pushed it though... > FYI, Does it respect any media settings from SRM? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org