svn commit: r214494 - head/sys/boot/ofw/libofw

Nathan Whitehorn nwhitehorn at FreeBSD.org
Fri Oct 29 00:36:44 UTC 2010


Author: nwhitehorn
Date: Fri Oct 29 00:36:44 2010
New Revision: 214494
URL: http://svn.freebsd.org/changeset/base/214494

Log:
  Fix netboot on some Apple machines on which calling dma-free on the
  network device can hang the machine. This causes the loss of 64 KB of
  accessible memory on netbooted machines.

Modified:
  head/sys/boot/ofw/libofw/ofw_net.c

Modified: head/sys/boot/ofw/libofw/ofw_net.c
==============================================================================
--- head/sys/boot/ofw/libofw/ofw_net.c	Thu Oct 28 23:46:05 2010	(r214493)
+++ head/sys/boot/ofw/libofw/ofw_net.c	Fri Oct 29 00:36:44 2010	(r214494)
@@ -230,7 +230,10 @@ punt:
 static void
 ofwn_end(struct netif *nif)
 {
+#ifdef BROKEN
+	/* dma-free freezes at least some Apple ethernet controllers */
 	OF_call_method("dma-free", netinstance, 2, 0, dmabuf, MAXPHYS);
+#endif
 	OF_close(netinstance);
 }
 


More information about the svn-src-head mailing list