source: rtems/c/src/lib/libcpu/powerpc/rtems/powerpc/cache.h @ 329a2c14

4.104.114.84.95
Last change on this file since 329a2c14 was f0f1641, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/13/04 at 10:03:32

2004-04-13 Ralf Corsepius <ralf_corsepius@…>

  • mpc505/ictrl/ictrl.c, mpc505/vectors/vectors.S, mpc6xx/exceptions/raw_exception.c, mpc8260/exceptions/raw_exception.c, mpc8xx/exceptions/raw_exception.c, rtems/powerpc/cache.h, mpc5xx/ictrl/ictrl.c, mpc5xx/exceptions/raw_exception.c: Include <rtems/score/powerpc.h> instead of <rtems/score/ppc.h>.
  • Property mode set to 100644
File size: 994 bytes
Line 
1/*
2 * $Id$
3 */
4
5#ifndef _rtems_powerpc_cache_h
6#define _rtems_powerpc_cache_h
7
8#include <rtems/score/powerpc.h>
9
10#ifdef _OLD_EXCEPTIONS
11
12#if (PPC_D_CACHE != 0)
13#define _CPU_Data_Cache_Block_Flush( _address ) \
14  do { register void *__address = (_address); \
15       register uint32_t   _zero = 0; \
16       asm volatile ( "dcbf %0,%1" : \
17                      "=r" (_zero), "=r" (__address) : \
18                      "0" (_zero), "1" (__address) \
19       ); \
20  } while (0)
21#else
22#define _CPU_Data_Cache_Block_Flush( _address ) /* nop */
23#endif
24
25/*
26 * FIXME: This is not used anywhere.
27 */
28#if (PPC_D_CACHE != 0)
29#define _CPU_Data_Cache_Block_Invalidate( _address ) \
30  do { register void *__address = (_address); \
31       register uint32_t   _zero = 0; \
32       asm volatile ( "dcbi %0,%1" : \
33                      "=r" (_zero), "=r" (__address) : \
34                      "0" (_zero), "1" (__address) \
35       ); \
36  } while (0)
37#else
38#define _CPU_Data_Cache_Block_Invalidate( _address ) /* nop */
39#endif
40#endif
41
42#endif
Note: See TracBrowser for help on using the repository browser.