Specifications
Include
<sys/alt_cache.h>
Description
The alt_dcache_flush_no_writeback() is called to flush the data cache for a memory region of length "len"
bytes, starting at address "start". Any dirty lines in the data cache are NOT written back to memory. The
cache will then be invalidated.
Return
--
alt_uncached_malloc()
Prototype
volatile void* alt_uncached_malloc (size_t size)
Commonly Called By
C/C++ programs
Device drivers
Thread-safe
Yes.
Available from ISR
No.
Include
<sys/alt_cache.h>
Description
The alt_uncached_malloc() function allocates a region of uncached memory of length size bytes.
Regions of memory allocated in this way can be released using the alt_uncached_free() function.
Processors that do not have a data cache return uncached memory.
Return
If sufficient memory cannot be allocated, this function returns null, otherwise a pointer to the allocated
space is returned.
Related Information
• alt_dcache_flush() on page 14-3
• alt_dcache_flush_all() on page 14-3
• alt_icache_flush() on page 14-9
• alt_icache_flush_all() on page 14-8
NII5V2
2015.05.14
alt_uncached_malloc()
14-5
HAL API Reference
Altera Corporation
Send Feedback