From 9322be1c23a73b2bba61591fdd09ca1f785b00dd Mon Sep 17 00:00:00 2001 From: nwhitehorn Date: Fri, 29 Oct 2010 00:36:44 +0000 Subject: 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. --- sys/boot/ofw/libofw/ofw_net.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/boot') 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); } -- cgit v1.1