Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jul 1999 00:33:57 -0500 (CDT)
From:      Steve Price <sprice@hiwaay.net>
To:        freebsd-alpha@freebsd.org
Cc:        freebsd-current@freebsd.org
Subject:   alpha kernel build failure (w/patch)
Message-ID:  <Pine.OSF.4.10.9907050031040.19262-100000@fly.HiWAAY.net>

next in thread | raw e-mail | index | archive | help
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-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.4.10.9907050031040.19262-100000>