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.
This commit is contained in:
Nathan Whitehorn 2010-10-29 00:36:44 +00:00
parent e60ab831db
commit 51b1acac58
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=214494

View File

@ -230,7 +230,10 @@ ofwn_init(struct iodesc *desc, void *machdep_hint)
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);
}