2008-09-01 11:51:23     blackfin_dcache_invalidate_range(unsigned int,unsigned int)

Document created by Aaronwu Employee on Aug 7, 2013
Version 1Show Document
  • View in full screen mode

2008-09-01 11:51:23     blackfin_dcache_invalidate_range(unsigned int,unsigned int)

Stephen Sheldon (GERMANY)

Message: 61483   

 

Hi,

 

I need a function to invalidate some cache entries. I know that the FLUSHINV ASM instruction is also available in usermode.

 

Is there any C/C++ function available?

 

I found blackfin_dcache_invalidate_range(unsigned int,unsigned int) in linux-2.6.x/include/asm-blackfin/cacheflush.h. But this function is not available with bfin-linux-uclib toolchain, I think.

 

 

 

 

 

Linux version:  2.6.22.18-ADI-2008R1-svn

blackfin-toolchain version:  08r1-8

blackfin-toolchain-elf-gcc-4.1 version: 08r1-8

blackfin-toolchain-uclibc-full  version: 08r1-8

U-Boot 1.1.6-svn1112

 

 

 

Best regards

 

Stephen

TranslateQuoteReplyEditDelete

 

 

2008-09-01 12:41:11     Re: blackfin_dcache_invalidate_range(unsigned int,unsigned int)

Mike Frysinger (UNITED STATES)

Message: 61489   

 

there are no cache functions available to applications running in Linux.  userspace applications arent supposed to care about cache.

Attachments

    Outcomes