summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/arm/shared/include/cache_.h
blob: 9db399edf7fe37b4b821e9de0ac074bcf4625160 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/**
 * @file
 *
 * @ingroup arm
 *
 * @brief ARM cache dummy include for chips without cache
 */

/*
 * Copyright (c) 2009-2011 embedded brains GmbH.  All rights reserved.
 *
 *  embedded brains GmbH
 *  Obere Lagerstr. 30
 *  82178 Puchheim
 *  Germany
 *  <rtems@embedded-brains.de>
 *
 * The license and distribution terms for this file may be
 * found in the file LICENSE in this distribution or at
 * http://www.rtems.org/license/LICENSE.
 */

#ifndef LIBCPU_ARM_CACHE__H
#define LIBCPU_ARM_CACHE__H

/*
 * The ARM targets equipped by cache should include
 * which kind and implementation they support.
 * Next options are available
 *
 * c/src/lib/libbsp/arm/shared/armv467ar-basic-cache/cache_.h
 *   basic ARM cache integrated on the CPU core directly
 *   which requires only CP15 oparations
 *
 * c/src/lib/libbsp/arm/shared/arm-l2c-310/cache_.h
 *   support for case where ARM L2C-310 cache controller
 *   is used. It is accessible as mmaped peripheral.
 *
 * c/src/lib/libbsp/arm/shared/armv7m/include/cache_.h
 *   Cortex-M specific cache support
 *
 * Cache support should be included in BSP Makefile.am
 *
 * Example how to include cache support
 *
 * # Cache
 * libbsp_a_SOURCES += ../../../libcpu/shared/src/cache_manager.c
 * libbsp_a_SOURCES += ../shared/include/arm-cache-l1.h
 * libbsp_a_SOURCES += ../shared/armv467ar-basic-cache/cache_.h
 * libbsp_a_CPPFLAGS += -I$(srcdir)/../shared/armv467ar-basic-cache
 */

#if defined(__ARM_ARCH_5TEJ__) || defined(__ARM_ARCH_7A__)
#warning ARM 5TEJ and ARMv7/Cortex-A cores include usually cache
#warning change BSP to include appropriate cache implementation
#endif

#endif /* LIBCPU_ARM_CACHE__H */