source: rtems/cpukit/score/cpu/arm/rtems/score/arm.h @ 5bb38e15

4.104.115
Last change on this file since 5bb38e15 was 5bb38e15, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/04/09 at 05:25:30

Whitespace removal.

  • Property mode set to 100644
File size: 1.7 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_6J__)
54#  define CPU_MODEL_NAME  "ARMv6J"
55
56#elif defined(__ARM_ARCH_7A__)
57#  define CPU_MODEL_NAME  "ARMv7A"
58
59#else
60#  error "Unsupported CPU Model"
61
62#endif
63
64/* All ARM CPUs are assumed to not have floating point units */
65#if defined(__SOFTFP__)
66#define ARM_HAS_FPU     0
67#else
68#define ARM_HAS_FPU     1
69# error "FPU-support not yet implemented for the arm"
70#endif
71
72
73/*
74 *  Define the name of the CPU family.
75 */
76
77#define CPU_NAME "ARM"
78
79#ifdef __cplusplus
80}
81#endif
82
83#endif /* _RTEMS_SCORE_ARM_H */
Note: See TracBrowser for help on using the repository browser.