I have a character buffer which i want to place in Cache ,how to make sure that in memory map the compiler place开发者_开发百科s this in DCache.
Compiler is RVCT 3.1
This is called "cache lockdown", and is supported by most (if not all) ARM9 processors, depending on the cache architecture. Here is a useful page from the ARM920T reference manual, including some example code. You should be able to find information for your specific processor in the table of contents on that page.
I never heard of such feature in ARM. There is the PLD
instruction that is a hint for preloading some data.
精彩评论