diff options
Diffstat (limited to 'c/src/lib/libcpu/sparc/cache/cache_.h')
-rw-r--r-- | c/src/lib/libcpu/sparc/cache/cache_.h | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/c/src/lib/libcpu/sparc/cache/cache_.h b/c/src/lib/libcpu/sparc/cache/cache_.h index 81852a20c5..f7ff00c0b0 100644 --- a/c/src/lib/libcpu/sparc/cache/cache_.h +++ b/c/src/lib/libcpu/sparc/cache/cache_.h @@ -14,12 +14,40 @@ * FIXME: Some functions simply have not been implemented. */ +/* This define is set in a Makefile */ #if defined(HAS_INSTRUCTION_CACHE) -#define CPU_CACHE_SUPPORT_PROVIDES_RANGE_FUNCTIONS + #define CPU_INSTRUCTION_CACHE_ALIGNMENT 0 -#endif -#include <libcpu/cache.h> +static inline void _CPU_cache_invalidate_entire_instruction ( void ) +{ + __asm__ volatile ("flush"); +} + +/* XXX these need to be addressed */ + +static inline void _CPU_cache_invalidate_1_instruction_line ( + const void * i_addr ) +{ +} + +static inline void _CPU_cache_freeze_instruction ( void ) +{ +} + +static inline void _CPU_cache_unfreeze_instruction ( void ) +{ +} + +static inline void _CPU_cache_enable_instruction ( void ) +{ +} + +static inline void _CPU_cache_disable_instruction ( void ) +{ +} + +#endif /* defined(HAS_INSTRUCTION_CACHE) */ #endif /* end of include file */ |