about uclinux for armnommu dma allocate issue

Greg Ungerer gerg at snapgear.com
Tue Apr 12 14:02:22 EDT 2011


Hi Wan,

On 11/04/11 00:04, Wan ZongShun wrote:
> I am programming ohci driver for my arm7 based on 2.6.38.
>
> td_alloc ->  dma_pool_alloc ->  dma_alloc_coherent().
>
> In previous uclinux version, there is the consistent.c located in
> arch/armnommu/mm to implement
> this dma_alloc_coherent, but now this latest version, I did not see
> this 'dma_alloc_coherent' function
> for armnommu, so I can use this function directly like this arm mmu?

Yes. There is no separate one for the nommu case. It just
uses the standard one in arch/arm/mm/dma-mapping.c.


> In addtion, the 'kmalloc' is the same to previous uclinux armnommu
> version? I can use it directly?

Oh, yes. There is no changes in how that works.

Regards
Greg





More information about the linux-arm-kernel mailing list