Changeset af03345 in rtems


Ignore:
Timestamp:
Oct 13, 2014, 9:54:12 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
991261f
Parents:
9488c9d
git-author:
Joel Sherrill <joel.sherrill@…> (10/13/14 21:54:12)
git-committer:
Joel Sherrill <joel.sherrill@…> (10/16/14 13:58:47)
Message:

Move CPU cache support from mcf5225x BSP to libcpu

Location:
c/src/lib
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/mcf5225x/Makefile.am

    r9488c9d raf03345  
    4343libbsp_a_LIBADD = \
    4444    ../../../libcpu/@RTEMS_CPU@/shared/cache.rel \
     45    ../../../libcpu/@RTEMS_CPU@/mcf5225x/cachepd.rel \
    4546    ../../../libcpu/@RTEMS_CPU@/shared/misc.rel
    4647
  • c/src/lib/libbsp/m68k/mcf5225x/startup/bspstart.c

    r9488c9d raf03345  
    1919#include <bsp/bootcard.h>
    2020
    21 /*
    22  * Cannot be frozen
    23  */
    24 void _CPU_cache_freeze_data(void) {}
    25 void _CPU_cache_unfreeze_data(void) {}
    26 void _CPU_cache_freeze_instruction(void) {}
    27 void _CPU_cache_unfreeze_instruction(void) {}
    28 
    29 /*
    30  * Write-through data cache -- flushes are unnecessary
    31  */
    32 void _CPU_cache_flush_1_data_line(const void *d_addr) {}
    33 void _CPU_cache_flush_entire_data(void) {}
    34 
    35 void _CPU_cache_enable_instruction(void) {}
    36 void _CPU_cache_disable_instruction(void) {}
    37 void _CPU_cache_invalidate_entire_instruction(void) {}
    38 void _CPU_cache_invalidate_1_instruction_line(const void *addr) {}
    39 
    40 void _CPU_cache_enable_data(void) {}
    41 void _CPU_cache_disable_data(void) {}
    42 void _CPU_cache_invalidate_entire_data(void) {}
    43 void _CPU_cache_invalidate_1_data_line(const void *addr) {}
    44 
    4521void __attribute__((weak)) bsp_start(void)
    4622{
  • c/src/lib/libcpu/m68k/Makefile.am

    r9488c9d raf03345  
    1212
    1313noinst_PROGRAMS += shared/cache.rel
    14 shared_cache_rel_SOURCES = shared/cache/cache.c shared/cache/cache_.h \
    15     ../shared/src/cache_aligned_malloc.c \
    16     ../shared/src/cache_manager.c
     14shared_cache_rel_SOURCES = shared/cache/cache.c
     15shared_cache_rel_SOURCES += shared/cache/cache_.h
     16shared_cache_rel_SOURCES += ../shared/src/cache_aligned_malloc.c
     17shared_cache_rel_SOURCES += ../shared/src/cache_manager.c
    1718shared_cache_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/shared/cache
    1819shared_cache_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     
    109110noinst_PROGRAMS += mcf5223x/cachepd.rel
    110111mcf5223x_cachepd_rel_SOURCES = mcf5223x/cache/cachepd.c
    111 mcf5223x_cachepd_rel_CPPFLAGS = $(AM_CPPFLAGS)
     112mcf5223x_cachepd_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/shared/cache
    112113mcf5223x_cachepd_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    113114endif
     
    117118include_mcf5225xdir = $(includedir)/mcf5225x
    118119include_mcf5225x_HEADERS = mcf5225x/include/mcf5225x.h
     120
     121# mcf5225x/cache
     122noinst_PROGRAMS += mcf5225x/cachepd.rel
     123mcf5225x_cachepd_rel_SOURCES = mcf5225x/cache/cachepd.c
     124mcf5225x_cachepd_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/shared/cache
     125mcf5225x_cachepd_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     126
    119127# Network
    120128if HAS_NETWORKING
     
    131139noinst_PROGRAMS += mcf5235/cachepd.rel
    132140mcf5235_cachepd_rel_SOURCES = mcf5235/cache/cachepd.c
    133 mcf5235_cachepd_rel_CPPFLAGS = $(AM_CPPFLAGS)
     141mcf5235_cachepd_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/shared/cache
    134142mcf5235_cachepd_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    135143endif
     
    143151noinst_PROGRAMS += mcf532x/cachepd.rel
    144152mcf532x_cachepd_rel_SOURCES = mcf532x/cache/cachepd.c
    145 mcf532x_cachepd_rel_CPPFLAGS = $(AM_CPPFLAGS)
     153mcf532x_cachepd_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/shared/cache
    146154mcf532x_cachepd_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    147155endif
Note: See TracChangeset for help on using the changeset viewer.