source: rtems/cpukit/score/cpu/arm/rtems/score/arm.h @ 9db18dd

4.104.115
Last change on this file since 9db18dd was 9db18dd, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on 12/15/09 at 15:14:12

add support for ARM11, reimplement nested interrupts

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