Liang Zhao
|
Questions about libcache on QNX6.5.0
|
Liang Zhao
06/01/2011 4:40 AM
post86309
|
Questions about libcache on QNX6.5.0
Hi group,
In our application, I've tried to use libcache from QNX 6.5.0 to improve the memory copy.
<SW>: QNX6.5.0
<HW>: Cortex-A8 based TI OMAP3
What I have done is following the instructions in QNX documentation:
1. Declare the source buffers as Cacheable
2. In the case of memory copy, invalidate the cached data (CACHE_INVAL), before transferring data into the destination
buffers.
The result is quite good, however I have some questions:
- What are the drawbacks of using libcache in this way?
- Anything attention?
- After invoking CACHE_INVAL, is it necessary to call something such as CACHE_VAL (Actually I haven't found such
functions in documentation) explicitly to enable cache again?
|
|
|