|
libnds
|
ARM9 cache control functions. More...
Functions | |
| static void | DC_FlushAll (void) |
| Flush the entire data cache to memory. | |
| static void | DC_FlushRange (const void *base, u32 size) |
| Flush the data cache of a range of addresses to memory. | |
| static void | DC_InvalidateAll (void) |
| Invalidate the entire data cache. | |
| static void | DC_InvalidateRange (const void *base, u32 size) |
| Invalidate the data cache of a range of addresses. | |
| static void | IC_InvalidateAll (void) |
| Invalidate the entire instruction cache. | |
| static void | IC_InvalidateRange (const void *base, u32 size) |
| Invalidate the instruction cache of a range of addresses. | |
ARM9 cache control functions.
ARM9 cache defines.
|
inlinestatic |
Flush the data cache of a range of addresses to memory.
| base | Base address of the region. |
| size | Size of the region. |
|
inlinestatic |
Invalidate the data cache of a range of addresses.
It's dangerous to invalidate a memory range. If the memory range isn't fully contained inside cache lines, invalidating it will also invalidate the variables around the range the caller wants to invalidate. This may cause unintended effects.
| base | Base address of the region to invalidate |
| size | Size of the region to invalidate. |
|
inlinestatic |
Invalidate the instruction cache of a range of addresses.
| base | Base address of the region. |
| size | Size of the region. |