bsps: Fix cache manager support

This commit is contained in:
Sebastian Huber
2013-09-10 08:50:24 +02:00
parent 784d2a1cc9
commit f55215a837
3 changed files with 12 additions and 0 deletions

View File

@@ -21,10 +21,13 @@
#ifndef __LIBCPU_CACHE_h #ifndef __LIBCPU_CACHE_h
#define __LIBCPU_CACHE_h #define __LIBCPU_CACHE_h
void _CPU_cache_flush_data_range(const void *d_addr, size_t n_bytes);
void _CPU_cache_flush_1_data_line(const void *d_addr); void _CPU_cache_flush_1_data_line(const void *d_addr);
void _CPU_cache_invalidate_data_range(const void *d_addr, size_t n_bytes);
void _CPU_cache_invalidate_1_data_line(const void *d_addr); void _CPU_cache_invalidate_1_data_line(const void *d_addr);
void _CPU_cache_freeze_data(void); void _CPU_cache_freeze_data(void);
void _CPU_cache_unfreeze_data(void); void _CPU_cache_unfreeze_data(void);
void _CPU_cache_invalidate_instruction_range(const void *i_addr, size_t n_bytes);
void _CPU_cache_invalidate_1_instruction_line(const void *d_addr); void _CPU_cache_invalidate_1_instruction_line(const void *d_addr);
void _CPU_cache_freeze_instruction(void); void _CPU_cache_freeze_instruction(void);
void _CPU_cache_unfreeze_instruction(void); void _CPU_cache_unfreeze_instruction(void);

View File

@@ -14,6 +14,14 @@ void _CPU_cache_invalidate_entire_instruction ( void )
} }
/* XXX these need to be addressed */ /* XXX these need to be addressed */
void _CPU_cache_invalidate_instruction_range(
const void *i_addr,
size_t n_bytes
)
{
}
void _CPU_cache_freeze_instruction ( void ) void _CPU_cache_freeze_instruction ( void )
{ {
} }

View File

@@ -15,6 +15,7 @@
*/ */
#if defined(HAS_INSTRUCTION_CACHE) #if defined(HAS_INSTRUCTION_CACHE)
#define CPU_CACHE_SUPPORT_PROVIDES_RANGE_FUNCTIONS
#define CPU_INSTRUCTION_CACHE_ALIGNMENT 0 #define CPU_INSTRUCTION_CACHE_ALIGNMENT 0
#endif #endif