source: rtems/c/src/lib/libcpu/sparc/cache/cache_.h @ 7f53035

4.115
Last change on this file since 7f53035 was 7f53035, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 27, 2015 at 8:11:47 AM

bsps/sparc: Use inline functions for cache manager

  • Property mode set to 100644
File size: 1.0 KB
Line 
1/*
2 *  SPARC Cache Manager Support
3 */
4
5#ifndef __SPARC_CACHE_h
6#define __SPARC_CACHE_h
7
8/*
9 * CACHE MANAGER: The following functions are CPU-specific.
10 * They provide the basic implementation for the rtems_* cache
11 * management routines. If a given function has no meaning for the CPU,
12 * it does nothing by default.
13 *
14 * FIXME: Some functions simply have not been implemented.
15 */
16
17/* This define is set in a Makefile */
18#if defined(HAS_INSTRUCTION_CACHE)
19
20#define CPU_INSTRUCTION_CACHE_ALIGNMENT 0
21
22static inline void _CPU_cache_invalidate_entire_instruction ( void )
23{
24  __asm__ volatile ("flush");
25}
26
27/* XXX these need to be addressed */
28
29static inline void _CPU_cache_invalidate_1_instruction_line (
30  const void * i_addr )
31{
32}
33
34static inline void _CPU_cache_freeze_instruction ( void )
35{
36}
37
38static inline void _CPU_cache_unfreeze_instruction ( void )
39{
40}
41
42static inline void _CPU_cache_enable_instruction ( void )
43{
44}
45
46static inline void _CPU_cache_disable_instruction (   void )
47{
48}
49
50#endif /* defined(HAS_INSTRUCTION_CACHE) */
51
52#endif
53/* end of include file */
Note: See TracBrowser for help on using the repository browser.