diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2016-07-03 00:19:38 +0200 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2016-07-04 15:55:57 +0200 |
commit | 0e507d5510e561211f814da5a0afb8a4c4b81ce9 (patch) | |
tree | 9aff7ef2516a7c4468bb032fb718c3fbdd94051c /cpukit/libcsupport/src/cachealignedalloc.c | |
parent | arm/raspberrypi: update VideoCore cache flush workaround to work on RPi2. (diff) | |
download | rtems-0e507d5510e561211f814da5a0afb8a4c4b81ce9.tar.bz2 |
rtems+bsps/cache: Define cache manager operations for code synchronization and maximal alignment.
There is need for unambiguous named and defined cache function
which should be called when code is updated, loaded
or is self-modifying.
There should be function to obtain maximal cache line length
as well. This function can and should be used for allocations
which can be used for data and or code and ensures that
there are no partial cache lines overlaps on start and
end of allocated region.
Diffstat (limited to 'cpukit/libcsupport/src/cachealignedalloc.c')
-rw-r--r-- | cpukit/libcsupport/src/cachealignedalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/cachealignedalloc.c b/cpukit/libcsupport/src/cachealignedalloc.c index a704859dbe..764fdfb331 100644 --- a/cpukit/libcsupport/src/cachealignedalloc.c +++ b/cpukit/libcsupport/src/cachealignedalloc.c @@ -15,7 +15,7 @@ void *rtems_cache_aligned_malloc( size_t nbytes ) { - size_t line_size = rtems_cache_get_data_line_size(); + size_t line_size = rtems_cache_get_maximal_line_size(); if ( line_size > 0 ) { /* Assume that the cache line size is a power of two */ |