Date: Tue, 18 Dec 2001 20:09:18 +0200 From: Ruslan Ermilov <ru@FreeBSD.org> To: Soren Schmidt <sos@FreeBSD.org> Cc: current@FreeBSD.org, alpha@FreeBSD.org Subject: Recent fdc(4) commit broke Alpha kernels Message-ID: <20011218200918.A14073@sunbay.com>
next in thread | raw e-mail | index | archive | help
Soren!
I bet someone else already mentioned your commit broke Alpha kernels.
Index: fd.c
===================================================================
RCS file: /home/ncvs/src/sys/isa/fd.c,v
retrieving revision 1.223
diff -u -p -r1.223 fd.c
--- fd.c 2001/12/16 05:37:22 1.223
+++ fd.c 2001/12/18 18:08:03
@@ -1180,7 +1180,7 @@ fd_probe(device_t dev)
fd->flags = FD_UA; /* make sure fdautoselect() will be called */
fd->type = FD_DTYPE(flags);
-#if _MACHINE_ARCH == i386
+#ifdef __i386__
if (fd->type == FDT_NONE && (fd->fdu == 0 || fd->fdu == 1)) {
/* Look up what the BIOS thinks we have. */
if (fd->fdu == 0) {
@@ -1200,7 +1200,7 @@ fd_probe(device_t dev)
if (fd->type == FDT_288M_1)
fd->type = FDT_288M;
}
-#endif /* _MACHINE_ARCH == i386 */
+#endif /* __i386__ */
/* is there a unit? */
if (fd->type == FDT_NONE)
return (ENXIO);
Cheers,
--
Ruslan Ermilov Oracle Developer/DBA,
ru@sunbay.com Sunbay Software AG,
ru@FreeBSD.org FreeBSD committer,
+380.652.512.251 Simferopol, Ukraine
http://www.FreeBSD.org The Power To Serve
http://www.oracle.com Enabling The Information Age
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?20011218200918.A14073>
