From owner-cvs-all Wed Aug 15 10:27: 4 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 27DE537B40F; Wed, 15 Aug 2001 10:26:55 -0700 (PDT) (envelope-from wpaul@FreeBSD.org) Received: (from wpaul@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7FHQtE57531; Wed, 15 Aug 2001 10:26:55 -0700 (PDT) (envelope-from wpaul) Message-Id: <200108151726.f7FHQtE57531@freefall.freebsd.org> From: Bill Paul Date: Wed, 15 Aug 2001 10:26:55 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/alpha/alpha busdma_machdep.c src/sys/i386/i386 busdma_machdep.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG wpaul 2001/08/15 10:26:55 PDT Modified files: sys/alpha/alpha busdma_machdep.c sys/i386/i386 busdma_machdep.c Log: Teach bus_dmamem_free() about contigfree(). This is a bit of a hack, but it's better than the buggy behavior we have now. If we contigmalloc() buffers in bus_dmamem_alloc(), then we must configfree() them in bus_dmamem_free(). Trying to free() them is wrong, and will cause a panic (at least, it does on the alpha.) I tripped over this when trying to kldunload my busdma-ified if_rl driver. Revision Changes Path 1.20 +5 -2 src/sys/alpha/alpha/busdma_machdep.c 1.24 +4 -1 src/sys/i386/i386/busdma_machdep.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message