diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-10-22 13:46:37 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-10-22 13:46:37 +0000 |
commit | 48694da292f65d6c67e58e88a5c664c41693d1fc (patch) | |
tree | 7e1a3f48f266b03fd4600a626bcc96365c33626a /c/src/lib/libcpu/powerpc/shared/include/cpu.h | |
parent | 2001-10-22 Andy Dachs <a.dachs@sstl.co.uk> (diff) | |
download | rtems-48694da292f65d6c67e58e88a5c664c41693d1fc.tar.bz2 |
2001-10-22 Andy Dachs <a.dachs@sstl.co.uk>
* Makefile.am, README, configure.ac, new_exception_processing/cpu.h,
shared/include/cpu.h, shared/include/cpuIdent.c, shared/src/cache.c:
Added mpc8260 support.
Diffstat (limited to 'c/src/lib/libcpu/powerpc/shared/include/cpu.h')
-rw-r--r-- | c/src/lib/libcpu/powerpc/shared/include/cpu.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/c/src/lib/libcpu/powerpc/shared/include/cpu.h b/c/src/lib/libcpu/powerpc/shared/include/cpu.h index 342d947f05..03d22e8020 100644 --- a/c/src/lib/libcpu/powerpc/shared/include/cpu.h +++ b/c/src/lib/libcpu/powerpc/shared/include/cpu.h @@ -8,6 +8,10 @@ * Copyright (C) 1999 Eric Valette (valette@crf.canon.fr) * Canon Centre Recherche France. * + * Added MPC8260 Andy Dachs <a.dachs@sstl.co.uk> + * Surrey Satellite Technology Limited + * + * * The license and distribution terms for this file may be * found in found in the file LICENSE in this distribution or at * http://www.OARcorp.com/rtems/license.html. @@ -184,6 +188,7 @@ typedef enum { PPC_620 = 0x16, PPC_860 = 0x50, PPC_821 = PPC_860, + PPC_8260 = 0x81, PPC_UNKNOWN = 0xff } ppc_cpu_id_t; @@ -317,6 +322,8 @@ static inline void PPC_Set_timebase_register (unsigned long long tbr) asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \ } while (0) +#define PPC_Get_decrementer( _clicks ) \ + asm volatile( "mfdec %0" : "=r" (_clicks) ) #ifdef __cplusplus } |