Changeset 4cf93658 in rtems for bsps/arm


Ignore:
Timestamp:
Jan 27, 2018, 1:37:51 PM (23 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
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/arm/shared/cache
Files:
4 moved

Legend:

Unmodified
Added
Removed
  • bsps/arm/shared/cache/cache-cp15.c

    rd8d6a08 r4cf93658  
    2121 */
    2222
    23 #ifndef LIBBSP_ARM_ARMV467AR_BASIC_CACHE_H
    24 #define LIBBSP_ARM_ARMV467AR_BASIC_CACHE_H
    25 
    2623#include <libcpu/arm-cp15.h>
    27 #include "../include/arm-cache-l1.h"
     24#include "cache-cp15.h"
    2825
    2926#define CPU_DATA_CACHE_ALIGNMENT 32
     
    185182}
    186183
    187 #endif /* LIBBSP_ARM_ARMV467AR_BASIC_CACHE_H */
     184#include "../../shared/cache/cacheimpl.h"
  • bsps/arm/shared/cache/cache-cp15.h

    rd8d6a08 r4cf93658  
    11/**
    2  * @file arm-cache-l1.h
    3  *
    42 * @ingroup arm_shared
    53 *
  • bsps/arm/shared/cache/cache-l2c-310.c

    rd8d6a08 r4cf93658  
    11/**
    2  * @file cache_.h
    3  *
    42 * @ingroup L2C-310_cache
    53 *
     
    5452 */
    5553
    56 #ifndef LIBBSP_ARM_SHARED_L2C_310_CACHE_H
    57 #define LIBBSP_ARM_SHARED_L2C_310_CACHE_H
    58 
    5954#include <assert.h>
    6055#include <bsp.h>
     
    6459#include <bsp/arm-release-id.h>
    6560#include <bsp/arm-errata.h>
    66 #include "../include/arm-cache-l1.h"
    67 
    68 #ifdef __cplusplus
    69 extern "C" {
    70 #endif /* __cplusplus */
     61
     62#include "cache-cp15.h"
    7163
    7264/* These two defines also ensure that the rtems_cache_* functions have bodies */
     
    13391331}
    13401332
    1341 
    1342 /** @} */
    1343 
    1344 #ifdef __cplusplus
    1345 }
    1346 #endif /* __cplusplus */
    1347 
    1348 #endif /* LIBBSP_ARM_SHARED_L2C_310_CACHE_H */
     1333#include "../../shared/cache/cacheimpl.h"
  • bsps/arm/shared/cache/cache-v7m.c

    rd8d6a08 r4cf93658  
    1212 * http://www.rtems.org/license/LICENSE.
    1313 */
    14 
    15 #ifndef LIBBSP_ARM_ARMV7M_CACHE__H
    16 #define LIBBSP_ARM_ARMV7M_CACHE__H
    1714
    1815#include <rtems.h>
     
    142139}
    143140
    144 #endif /* LIBBSP_ARM_ARMV7M_CACHE__H */
     141#include "../../shared/cache/cacheimpl.h"
Note: See TracChangeset for help on using the changeset viewer.