# IC_PrefetchRange

## C Specification

      #include <nitro/os.h>

      void IC_PrefetchRange( const void* startAddr, u32 nBytes );

## Arguments

startAddr | Lowest address in the prefetch region
nBytes | Number of bytes in the prefetch region

## Return Values

None.

## Description

This function prefetches the instruction code of the specified region into the instruction cache.

`startAddr` is rounded down to the closest 32-byte boundary. `startAddr` + `nBytes` is rounded up to the closest 32-byte boundary.

## Internal Operation

Operates register 7 of the system control coprocessor. This function divides the specified range into cache-line units and repeats its operation. Thus the amount of time it takes is proportional to the size of the range.

## See Also

`IC_InvalidateRange, IC_LockdownRange
`

## Revision History

11/14/2005 Changed the type of `startAddr` to `const void*`.
04/19/2005 Added a description of the reason why processing time is proportional to the size of the memory region.
12/22/2003 Initial version.

CONFIDENTIAL