From owner-freebsd-alpha Sun Jul 4 22:34: 2 1999 Delivered-To: freebsd-alpha@freebsd.org Received: from mail.HiWAAY.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (Postfix) with ESMTP id D112914D20; Sun, 4 Jul 1999 22:33:58 -0700 (PDT) (envelope-from sprice@hiwaay.net) Received: from localhost (sprice@localhost) by mail.HiWAAY.net (8.9.1a/8.9.0) with ESMTP id AAA00518; Mon, 5 Jul 1999 00:33:57 -0500 (CDT) Date: Mon, 5 Jul 1999 00:33:57 -0500 (CDT) From: Steve Price To: freebsd-alpha@freebsd.org Cc: freebsd-current@freebsd.org Subject: alpha kernel build failure (w/patch) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Anyone object to me fixing the wb driver so kernel builds on the Alpha don't fall over anymore? The patch was gleened from the similar changes to the al driver. Thanks. -steve Index: if_wb.c =================================================================== RCS file: /home/ncvs/src/sys/pci/if_wb.c,v retrieving revision 1.11 diff -u -r1.11 if_wb.c --- if_wb.c 1999/07/02 04:17:16 1.11 +++ if_wb.c 1999/07/05 05:29:15 @@ -1096,7 +1096,12 @@ printf ("wb%d: couldn't map ports\n", unit); goto fail; } +#ifdef __i386__ sc->wb_btag = I386_BUS_SPACE_IO; +#endif +#ifdef __alpha__ + sc->wb_btag = ALPHA_BUS_SPACE_IO; +#endif #else if (!(command & PCIM_CMD_MEMEN)) { printf("wb%d: failed to enable memory mapping!\n", unit); @@ -1107,7 +1112,12 @@ printf ("wb%d: couldn't map memory\n", unit); goto fail; } +#ifdef __i386__ sc->wb_btag = I386_BUS_SPACE_MEM; +#endif +#ifdef __alpha__ + sc->wb_btag = ALPHA_BUS_SPACE_MEM; +#endif sc->wb_bhandle = vbase; #endif To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message