libnds
Functions
cache.h File Reference

ARM9 cache control functions. More...

#include "nds/ndstypes.h"

Functions

void DC_FlushAll ()
 flush the entire data cache to memory.
 
void DC_FlushRange (const void *base, u32 size)
 flush the data cache for a range of addresses to memory. More...
 
void DC_InvalidateAll ()
 invalidate the entire data cache.
 
void DC_InvalidateRange (const void *base, u32 size)
 invalidate the data cache for a range of addresses. More...
 
void IC_InvalidateAll ()
 invalidate entire instruction cache.
 
void IC_InvalidateRange (const void *base, u32 size)
 invalidate the instruction cache for a range of addresses. More...
 

Detailed Description

ARM9 cache control functions.

ARM9 cache defines.

Function Documentation

DC_FlushRange ( const void *  base,
u32  size 
)

flush the data cache for a range of addresses to memory.

Parameters
basebase address of the region to flush.
sizesize of the region to flush.
DC_InvalidateRange ( const void *  base,
u32  size 
)

invalidate the data cache for a range of addresses.

Parameters
basebase address of the region to invalidate
sizesize of the region to invalidate.
IC_InvalidateRange ( const void *  base,
u32  size 
)

invalidate the instruction cache for a range of addresses.

Parameters
basebase address of the region to invalidate
sizesize of the region to invalidate.