diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2010-10-29 00:36:44 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2010-10-29 00:36:44 +0000 |
commit | 9322be1c23a73b2bba61591fdd09ca1f785b00dd (patch) | |
tree | faa973072418ef94431f4c3d1dbc846bc7cfa36e /sys/boot/ofw | |
parent | 4da7d606a25ece6c60dd8f08f085da60d3ac3a5f (diff) | |
download | FreeBSD-src-9322be1c23a73b2bba61591fdd09ca1f785b00dd.zip FreeBSD-src-9322be1c23a73b2bba61591fdd09ca1f785b00dd.tar.gz |
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.
Diffstat (limited to 'sys/boot/ofw')
-rw-r--r-- | sys/boot/ofw/libofw/ofw_net.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/boot/ofw/libofw/ofw_net.c b/sys/boot/ofw/libofw/ofw_net.c index 17e1125..830fcda 100644 --- a/sys/boot/ofw/libofw/ofw_net.c +++ b/sys/boot/ofw/libofw/ofw_net.c @@ -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); } |