diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-06-14 15:39:31 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-06-14 15:39:31 +0000 |
commit | 0a18747e56fdb682b55bc1592f37beb80512e044 (patch) | |
tree | 039b66cd7506f2e9604d368dff0efed4e596c27b /c/src/lib/libcpu/powerpc/shared/src/cache_.h | |
parent | New file. (diff) | |
download | rtems-0a18747e56fdb682b55bc1592f37beb80512e044.tar.bz2 |
New files containing cache manager functionality stripped from
score/cpu/powerpc.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libcpu/powerpc/shared/src/cache_.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/c/src/lib/libcpu/powerpc/shared/src/cache_.h b/c/src/lib/libcpu/powerpc/shared/src/cache_.h new file mode 100644 index 0000000000..ab14ca9c40 --- /dev/null +++ b/c/src/lib/libcpu/powerpc/shared/src/cache_.h @@ -0,0 +1,31 @@ +/* + * PowerPC Cache Manager Support + */ + +#ifndef __POWERPC_CACHE_h +#define __POWERPC_CACHE_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) /* And possibly others */ +#define _CPU_DATA_CACHE_ALIGNMENT PPC_CACHE_ALIGNMENT +#define _CPU_INST_CACHE_ALIGNMENT PPC_CACHE_ALIGNMENT + +#elif ( defined(mpc860) || defined(mpc821) ) + +#define _CPU_DATA_CACHE_ALIGNMENT PPC_CACHE_ALIGNMENT +#define _CPU_INST_CACHE_ALIGNMENT PPC_CACHE_ALIGNMENT + +#endif + +#include <libcpu/cache.h> + +#endif +/* end of include file */ |