1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-21 15:45:02 +00:00

Pass NULL instead of MAXPHYS to the DMA allocation method. Be a bit more

verbose if we fail to allocate the DMA buffer.
This commit is contained in:
Benno Rice 2001-08-26 07:07:47 +00:00
parent 0683508cdc
commit 035dbc3cb5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82343

View File

@ -203,9 +203,11 @@ ofwn_init(struct iodesc *desc, void *machdep_hint)
printf("ofwn_init: OpenFirmware instance handle: %08x\n", netinstance);
#endif
if (OF_call_method("dma-alloc", netinstance, 1, 1, MAXPHYS, &dmabuf)
== -1)
if (OF_call_method("dma-alloc", netinstance, 1, 1, NULL, &dmabuf)
< 0) {
printf("Failed to allocate DMA buffer (got %08x).\n", dmabuf);
goto punt;
}
#if defined(NETIF_DEBUG)
printf("ofwn_init: allocated DMA buffer: %08x\n", dmabuf);