Changeset 4cf93658 in rtems for bsps/sparc


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.

Location:
bsps/sparc
Files:
2 moved

Legend:

Unmodified
Added
Removed
  • bsps/sparc/leon2/start/cache.c

    rd8d6a08 r4cf93658  
    22 *  SPARC Cache Manager Support
    33 */
    4 
    5 #ifndef __SPARC_CACHE_h
    6 #define __SPARC_CACHE_h
    74
    85/*
     
    1512 */
    1613
    17 /* This define is set in a Makefile */
    18 #if defined(HAS_INSTRUCTION_CACHE)
     14#include <stddef.h>
    1915
    2016#define CPU_INSTRUCTION_CACHE_ALIGNMENT 0
     
    5349}
    5450
    55 #endif /* defined(HAS_INSTRUCTION_CACHE) */
    56 
    57 #endif
    58 /* end of include file */
     51#include "../../../shared/cache/cacheimpl.h"
  • bsps/sparc/leon3/start/cache.c

    rd8d6a08 r4cf93658  
    1313 */
    1414
    15 #ifndef LEON3_CACHE_H
    16 #define LEON3_CACHE_H
    17 
    1815#include <amba.h>
    1916#include <leon.h>
    20 
    21 #ifdef __cplusplus
    22 extern "C" {
    23 #endif
    2417
    2518#define CPU_CACHE_SUPPORT_PROVIDES_RANGE_FUNCTIONS
     
    196189}
    197190
    198 #ifdef __cplusplus
    199 }
    200 #endif /* __cplusplus */
    201 
    202 #endif /* LEON3_CACHE_H */
     191#include "../../../shared/cache/cacheimpl.h"
Note: See TracChangeset for help on using the changeset viewer.