From 0a18747e56fdb682b55bc1592f37beb80512e044 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 14 Jun 2000 15:39:31 +0000 Subject: New files containing cache manager functionality stripped from score/cpu/powerpc. --- c/src/lib/libcpu/powerpc/shared/src/cache_.h | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 c/src/lib/libcpu/powerpc/shared/src/cache_.h (limited to 'c/src/lib/libcpu/powerpc/shared/src/cache_.h') 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 + +#endif +/* end of include file */ -- cgit v1.2.3