source: rtems/cpukit/score/cpu/arm/rtems/score/arm.h @ 6c63598

4.104.114.84.95
Last change on this file since 6c63598 was 6c63598, checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/11/03 at 07:56:06

Fix CVS-Ids

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/* 
2 *  $Id$
3 *
4 *  COPYRIGHT (c) 2000 Canon Research Centre France SA.
5 *  Emmanuel Raguet, mailto:raguet@crf.canon.fr
6 *
7 *  Copyright (c) 2002 Advent Networks, Inc.
8 *       Jay Monkman <jmonkman@adventnetworks.com>
9 *
10 *  The license and distribution terms for this file may be
11 *  found in the file LICENSE in this distribution or at
12 *  http://www.OARcorp.com/rtems/license.html.
13 *
14 */
15
16#ifndef _INCLUDE_ARM_h
17#define _INCLUDE_ARM_h
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23/*
24 *  This file contains the information required to build
25 *  RTEMS for a particular member of the "arm"
26 *  family when executing in protected mode.  It does
27 *  this by setting variables to indicate which implementation
28 *  dependent features are present in a particular member
29 *  of the family.
30 */
31#if defined(__ARM_ARCH_4__)
32#  define CPU_MODEL_NAME  "ARMv4"
33#  define ARM_HAS_CLZ     0
34
35#elif defined(__ARM_ARCH_4T__)
36#  define CPU_MODEL_NAME  "ARMv4T"
37#  define ARM_HAS_CLZ     0
38
39#elif defined(__ARM_ARCH_5__)
40#  define CPU_MODEL_NAME  "ARMv5"
41#  define ARM_HAS_CLZ     1
42
43#elif defined(__ARM_ARCH_5T__)
44#  define CPU_MODEL_NAME  "ARMv5T"
45#  define ARM_HAS_CLZ     1
46
47#elif defined(__ARM_ARCH_5E__)
48#  define CPU_MODEL_NAME  "ARMv5E"
49#  define ARM_HAS_CLZ     1
50
51#elif defined(__ARM_ARCH_5TE__)
52#  define CPU_MODEL_NAME  "ARMv5TE"
53#  define ARM_HAS_CLZ     1
54
55#else
56#  error "Unsupported CPU Model"
57
58#endif
59
60/* All ARM CPUs are assumed to not have floating point units */
61#if defined(__SOFTFP__)
62#define ARM_HAS_FPU     0
63#else
64#define ARM_HAS_FPU     1
65# error "FPU-support not yet implemented for the arm"
66#endif
67
68
69/*
70 *  Define the name of the CPU family.
71 */
72
73#define CPU_NAME "ARM"
74
75#ifdef __cplusplus
76}
77#endif
78
79#endif /* ! _INCLUDE_ARM_h */
80/* end of include file */
Note: See TracBrowser for help on using the repository browser.