From owner-freebsd-alpha Mon Jul 5 15:22: 7 1999 Delivered-To: freebsd-alpha@freebsd.org Received: from overcee.netplex.com.au (overcee.netplex.com.au [202.12.86.7]) by hub.freebsd.org (Postfix) with ESMTP id 4424315206; Mon, 5 Jul 1999 15:22:02 -0700 (PDT) (envelope-from peter@netplex.com.au) Received: from netplex.com.au (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 3666F64; Tue, 6 Jul 1999 06:22:01 +0800 (WST) (envelope-from peter@netplex.com.au) X-Mailer: exmh version 2.0.2 2/24/98 To: Parag Patel Cc: Steve Price , freebsd-alpha@FreeBSD.ORG, freebsd-current@FreeBSD.ORG Subject: Re: alpha kernel build failure (w/patch) In-reply-to: Your message of "Mon, 05 Jul 1999 10:59:37 MST." <64807.931197577@pinhead.parag.codegen.com> Date: Tue, 06 Jul 1999 06:22:01 +0800 From: Peter Wemm Message-Id: <19990705222201.3666F64@overcee.netplex.com.au> Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Parag Patel wrote: > On Mon, 05 Jul 1999 00:33:57 CDT, Steve Price wrote: > >+#ifdef __i386__ > > sc->wb_btag = I386_BUS_SPACE_IO; > >+#endif > >+#ifdef __alpha__ > >+ sc->wb_btag = ALPHA_BUS_SPACE_IO; > >+#endif > > Just curious, but is there a reason that these lines aren't simply > > sc->wb_btag = BUS_SPACE_IO; > > with this macro being set to the correct machine-specific one in some > appropriate header file? I'm sure I'm missing something... > > Thanks! The really annoying thing is that this is handled in the bus configuration system already. The driver only has to ask for the handle and tags for the resource it's activated and can then use that directly for the bus_space calls. But, old style drivers don't have access to that as the information is not available across the compatability shims. > -- Parag Patel Cheers, -Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message