forked from Imagelibrary/rtems
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.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -3,6 +3,9 @@
|
||||
*
|
||||
* Copyright (C) 1999 Eric Valette. valette@crf.canon.fr
|
||||
*
|
||||
* 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.
|
||||
@@ -37,6 +40,7 @@ ppc_cpu_id_t get_ppc_cpu_type()
|
||||
case PPC_604r:
|
||||
case PPC_620:
|
||||
case PPC_860:
|
||||
case PPC_8260:
|
||||
current_ppc_cpu = (ppc_cpu_id_t) pvr;
|
||||
return current_ppc_cpu;
|
||||
default:
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
/*
|
||||
* Cache Management Support Routines for the MC68040
|
||||
* Modified for MPC8260 Andy Dachs <a.dachs@sstl.co.uk>
|
||||
* Surrey Satellite Technology Limited (SSTL), 2001
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
@@ -17,7 +19,7 @@
|
||||
* FIXME: Some functions simply have not been implemented.
|
||||
*/
|
||||
|
||||
#if defined(ppc603) /* And possibly others */
|
||||
#if defined(ppc603) || defined(mpc8260) /* And possibly others */
|
||||
|
||||
/* Helpful macros */
|
||||
#define PPC_Get_HID0( _value ) \
|
||||
|
||||
Reference in New Issue
Block a user