Changeset 7f53035 in rtems


Ignore:
Timestamp:
Apr 27, 2015, 8:11:47 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
40d24d5
Parents:
4bf2a6aa
Message:

bsps/sparc: Use inline functions for cache manager

Location:
c/src/lib/libcpu/sparc
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/sparc/Makefile.am

    r4bf2a6aa r7f53035  
    1111
    1212noinst_PROGRAMS += cache.rel
    13 cache_rel_SOURCES = cache/cache.c cache/cache_.h \
     13cache_rel_SOURCES = cache/cache_.h \
    1414    ../shared/src/cache_manager.c
    1515cache_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/cache
  • c/src/lib/libcpu/sparc/cache/cache_.h

    r4bf2a6aa r7f53035  
    1515 */
    1616
     17/* This define is set in a Makefile */
    1718#if defined(HAS_INSTRUCTION_CACHE)
    18 #define CPU_CACHE_SUPPORT_PROVIDES_RANGE_FUNCTIONS
     19
    1920#define CPU_INSTRUCTION_CACHE_ALIGNMENT 0
    20 #endif
    2121
    22 #include <libcpu/cache.h>
     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) */
    2351
    2452#endif
Note: See TracChangeset for help on using the changeset viewer.