Nios II Classic Software Developer’s Handbook

ID 683282
Date 5/14/2015
Public
Document Table of Contents

14.1.9. alt_remap_cached()

Prototype

void* alt_remap_cached (volatile void* ptr,

alt_u32 len);

Commonly Called By

C/C++ programs

Device drivers

Thread-safe

Yes.

Available from ISR

No.

Include

<sys/alt_cache.h>

Description

The alt_remap_cached() function remaps a region of memory for cached access. The memory to map is len bytes, starting at address ptr.

Processors that do not have a data cache return uncached memory.

Return

The return value for this function is the remapped memory region.