summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/shared/src/cache_.h
blob: 5851f0818b28363bcb971b08ffba777fa3ba34fe (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
/**
 * @file
 *
 * #ingroup powerpc_shared
 *
 * @brief Header file for the Cache Manager PowerPC support.
 */

#ifndef LIBCPU_POWERPC_CACHE_H
#define LIBCPU_POWERPC_CACHE_H

#include <rtems/score/powerpc.h>

/* Provide the CPU defines only if we have a cache */
#if PPC_CACHE_ALIGNMENT != PPC_NO_CACHE_ALIGNMENT
  #define CPU_DATA_CACHE_ALIGNMENT PPC_CACHE_ALIGNMENT
  #define CPU_INSTRUCTION_CACHE_ALIGNMENT PPC_CACHE_ALIGNMENT
#endif

#ifdef _OLD_EXCEPTIONS
# warning OLD EXCEPTIONS
# include <libcpu/cache.h>
#endif

#endif /* LIBCPU_POWERPC_CACHE_H */