source: rtems/cpukit/score/cpu/arm/rtems/score/arm.h @ 8ae37323

4.115
Last change on this file since 8ae37323 was 8ae37323, checked in by Sebastian Huber <sebastian.huber@…>, on 08/10/14 at 16:36:30

arm: Add support for FPv4-SP floating point unit

This floating point unit is available in Cortex-M4 processors and
defined by ARMv7-M. This adds basic support for other VFP-D16 variants.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/**
2 * @file
3 *
4 * @brief ARM Assembler Support API
5 */
6
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.org/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 * @addtogroup ScoreCPU
29 */
30/**@{**/
31
32#if defined(__ARM_ARCH_7M__)
33  #define CPU_MODEL_NAME "ARMv7M"
34  #define ARM_MULTILIB_ARCH_V7M
35#else
36  #define CPU_MODEL_NAME "ARMv4"
37  #define ARM_MULTILIB_ARCH_V4
38#endif
39
40#if defined(__ARM_ARCH_7A__) \
41  || defined(__ARM_ARCH_7R__) \
42  || defined(__ARM_ARCH_7M__)
43  #define ARM_MULTILIB_HAS_WFI
44  #define ARM_MULTILIB_HAS_LOAD_STORE_EXCLUSIVE
45  #define ARM_MULTILIB_HAS_BARRIER_INSTRUCTIONS
46#endif
47
48#if defined(__ARM_ARCH_7A__) \
49  || defined(__ARM_ARCH_7R__)
50  #define ARM_MULTILIB_HAS_THREAD_ID_REGISTER
51#endif
52
53#if !defined(__SOFTFP__)
54  #if defined(__ARM_NEON__)
55    #define ARM_MULTILIB_VFP_D32
56  #elif defined(__VFP_FP__)
57    #define ARM_MULTILIB_VFP_D16
58  #else
59    #error "FPU support not implemented"
60  #endif
61#endif
62
63#if defined(ARM_MULTILIB_VFP_D16) \
64  || defined(ARM_MULTILIB_VFP_D32)
65  #define ARM_MULTILIB_VFP
66#endif
67
68/*
69 *  Define the name of the CPU family.
70 */
71
72#define CPU_NAME "ARM"
73
74/** @} */
75
76#ifdef __cplusplus
77}
78#endif
79
80#endif /* _RTEMS_SCORE_ARM_H */
Note: See TracBrowser for help on using the repository browser.