summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/shared/src/cache_.h
blob: 2477cf78f53819aaada925a9fea1adda1fd764e1 (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
/*
 *  PowerPC Cache Manager Support
 */

#ifndef __POWERPC_CACHE_h
#define __POWERPC_CACHE_h
/*
 * get definitions from the score/powerpc header 
 * about individual cache alignments
 */
#include <rtems/score/powerpc.h>

/*
 * CACHE MANAGER: The following functions are CPU-specific.
 * They provide the basic implementation for the rtems_* cache
 * management routines. If a given function has no meaning for the CPU,
 * it does nothing by default.
 *
 * FIXME: Some functions simply have not been implemented.
 */

#if defined(ppc603) || defined(ppc603e) || defined(mpc8260)	   
   /* And possibly others */

#if defined(PPC_CACHE_ALIGNMENT)

#define CPU_DATA_CACHE_ALIGNMENT PPC_CACHE_ALIGNMENT
#define CPU_INSTRUCTION_CACHE_ALIGNMENT PPC_CACHE_ALIGNMENT

#endif
#endif
#include <libcpu/cache.h>

#endif
/* end of include file */