[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS: cvs.openbsd.org: src



CVSROOT:	/cvs
Module name:	src
Changes by:	krw_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org	2007/10/06 17:12:17

Modified files:
	sys/arch/alpha/isa: isadma_bounce.c 
	sys/arch/arm/arm: bus_dma.c 
	sys/arch/landisk/landisk: bus_dma.c 
	sys/arch/mvme88k/mvme88k: bus_dma.c 
	sys/arch/mvmeppc/mvmeppc: bus_dma.c 

Log message:
Some archs used memset() rather than bzero(). So duplicate diff
previously applied to other archs deleting a memset() this time. e.g.

-	if ((mapstore = malloc(mapsize, M_DEVBUF,
-	    (flags & BUS_DMA_NOWAIT) ? M_NOWAIT : M_WAITOK)) == NULL)
+	if ((mapstore = malloc(mapsize, M_DEVBUF, (flags & BUS_DMA_NOWAIT) ?
+	    (M_NOWAIT | M_ZERO) : (M_WAITOK | M_ZERO))) == NULL)
return (ENOMEM);

-	memset(mapstore, 0, mapsize);



Visit your host, monkey.org