Changeset 4cf93658 in rtems for bsps/m68k/shared/cache/cache.h


Ignore:
Timestamp:
Jan 27, 2018, 1:37:51 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
05015dc1
Parents:
d8d6a08
git-author:
Sebastian Huber <sebastian.huber@…> (01/27/18 13:37:51)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/31/18 11:49:09)
Message:

bsps: Rework cache manager implementation

The previous cache manager support used a single souce file
(cache_manager.c) which included an implementation header (cache_.h).
This required the use of specialized include paths to find the right
header file. Change this to include a generic implementation header
(cacheimpl.h) in specialized source files.

Use the following directories and files:

  • bsps/shared/cache
  • bsps/@RTEMS_CPU@/shared/cache
  • bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILY/start/cache.c

Update #3285.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • bsps/m68k/shared/cache/cache.h

    rd8d6a08 r4cf93658  
    11/*
    2  *  Cache Management Support Routines for the MC68040
    3  */
    4 
    5 #include <rtems.h>
    6 #include "cache_.h"
     2 *  M68K Cache Manager Support
     3 */
     4
     5#if (defined(__mc68020__) && !defined(__mcpu32__))
     6# define M68K_INSTRUCTION_CACHE_ALIGNMENT 16
     7#elif defined(__mc68030__)
     8# define M68K_INSTRUCTION_CACHE_ALIGNMENT 16
     9# define M68K_DATA_CACHE_ALIGNMENT 16
     10#elif ( defined(__mc68040__) || defined (__mc68060__) )
     11# define M68K_INSTRUCTION_CACHE_ALIGNMENT 16
     12# define M68K_DATA_CACHE_ALIGNMENT 16
     13#elif ( defined(__mcf5200__) )
     14# define M68K_INSTRUCTION_CACHE_ALIGNMENT 16
     15# if ( defined(__mcf528x__) )
     16#  define M68K_DATA_CACHE_ALIGNMENT 16
     17# endif
     18#elif ( defined(__mcf5300__) )
     19# define M68K_INSTRUCTION_CACHE_ALIGNMENT 16
     20# define M68K_DATA_CACHE_ALIGNMENT 16
     21#elif defined(__mcfv4e__)
     22# define M68K_INSTRUCTION_CACHE_ALIGNMENT 16
     23# define M68K_DATA_CACHE_ALIGNMENT 16
     24#endif
     25
     26#if defined(M68K_DATA_CACHE_ALIGNMENT)
     27#define CPU_DATA_CACHE_ALIGNMENT M68K_DATA_CACHE_ALIGNMENT
     28#endif
     29
     30#if defined(M68K_INSTRUCTION_CACHE_ALIGNMENT)
     31#define CPU_INSTRUCTION_CACHE_ALIGNMENT M68K_INSTRUCTION_CACHE_ALIGNMENT
     32#endif
    733
    834/*
     
    188214}
    189215#endif
    190 /* end of file */
Note: See TracChangeset for help on using the changeset viewer.