[uClinux-dev] nios2: need dma_release_declared_memory() and dma_declare_coherent_memory()

Robert P. J. Day rpjday at crashcourse.ca
Sat Oct 27 18:51:38 EDT 2007


  i think i'm getting close to finally being able to build that
kernel, and here's the latest stumbling block:

...
drivers/built-in.o(.text+0x1821c): In function `dmam_coherent_decl_release':
drivers/base/dma-mapping.c:169: undefined reference to `dma_release_declared_memory'
drivers/built-in.o(.text+0x18290): In function `dmam_declare_coherent_memory':
drivers/base/dma-mapping.c:195: undefined reference to `dma_declare_coherent_memory'
...

  clearly, there is no definition of those two routines.  now, the
header file include/asm-nios2nommu/dma-mapping.h includes the line:

#define ARCH_HAS_DMA_DECLARE_COHERENT_MEMORY

which means that this architecture is responsible for defining those
two routines.  but i have no idea what the definitions of those two
routines should look like.  once i get them, i imagine the right place
for them would be in arch/nios2nommu/kernel/dma.c.

  any thoughts on what those two routines should look like for nios2?
thanks.

rday

-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://crashcourse.ca
========================================================================


More information about the uClinux-dev mailing list