[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Aligned malloc for dma and mbufs for powerpc ppc405gp (was dma-vm-cache)
- Date: Thu, 11 Nov 2004 09:23:14 -0500
- From: gene.smith at siemens.com (Smith, Gene)
- Subject: Aligned malloc for dma and mbufs for powerpc ppc405gp (was dma-vm-cache)
Feng, Shuchen wrote, On 11/10/2004 11:51 PM:
> How about the dma-vme-cache issue ?
> Did the hardware/firmware take care of the cache snoop ?
> Did you have to write the software snoop as what Joel suggested earlier ?
> If so, is it shareable ?
>> Joel Sherrill wrote :
>>THen it would be the BSPs responsibility to provide the implementation
>>of these routines with some shared code having default no-op versions.
Some of these calls got deep into BSD Virtual Memory calls which don't
map to rtems. So I greatly simplified most of them. Only bus_dmamap_sync
I pretty much left alone since it is called a lot during runtime.
Right now I have just moved the routines into my network.c so they are
not "sharable" between BSPs right now. If you mean is the code itself
sharable then I can email it to you if you would like to see it.
It is based on BSD routine: