svn commit: r215920 - stable/8/sys/boot/ofw/libofw
Nathan Whitehorn
nwhitehorn at FreeBSD.org
Sat Nov 27 00:37:13 UTC 2010
Author: nwhitehorn
Date: Sat Nov 27 00:37:13 2010
New Revision: 215920
URL: http://svn.freebsd.org/changeset/base/215920
Log:
MFC r214494:
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:
stable/8/sys/boot/ofw/libofw/ofw_net.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
Modified: stable/8/sys/boot/ofw/libofw/ofw_net.c
==============================================================================
--- stable/8/sys/boot/ofw/libofw/ofw_net.c Sat Nov 27 00:36:11 2010 (r215919)
+++ stable/8/sys/boot/ofw/libofw/ofw_net.c Sat Nov 27 00:37:13 2010 (r215920)
@@ -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-stable
mailing list