source: rtems/cpukit/score/cpu/arm/include/rtems/score/arm.h @ c0443b4

5
Last change on this file since c0443b4 was c0443b4, checked in by Joel Sherrill <joel@…>, on Mar 12, 2018 at 7:42:47 PM

Add ARM Paravirtualization support

Closes #3305.

  • Property mode set to 100755
File size: 1.9 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__) || defined(__ARM_ARCH_7EM__)
33  #define CPU_MODEL_NAME "ARMv7M"
34  #define ARM_MULTILIB_ARCH_V7M
35#elif defined(__ARM_ARCH_6M__)
36  #define CPU_MODEL_NAME "ARMv6M"
37  #define ARM_MULTILIB_ARCH_V6M
38#else
39  #define CPU_MODEL_NAME "ARMv4"
40  #define ARM_MULTILIB_ARCH_V4
41#endif
42
43#if defined(__ARM_ARCH_7A__) \
44  || defined(__ARM_ARCH_7R__) \
45  || defined(__ARM_ARCH_7M__) \
46  || defined(__ARM_ARCH_7EM__)
47  #define ARM_MULTILIB_HAS_WFI
48  #define ARM_MULTILIB_HAS_LOAD_STORE_EXCLUSIVE
49  #define ARM_MULTILIB_HAS_BARRIER_INSTRUCTIONS
50#endif
51
52#ifndef ARM_DISABLE_THREAD_ID_REGISTER_USE
53  #if defined(__ARM_ARCH_7A__) \
54    || defined(__ARM_ARCH_7R__)
55    #define ARM_MULTILIB_HAS_THREAD_ID_REGISTER
56  #endif
57#endif
58
59#if defined(__ARM_ARCH_7A__)
60  #define ARM_MULTILIB_CACHE_LINE_MAX_64
61#endif
62
63#if defined(__ARM_ARCH_7A__) \
64  || defined(__ARM_ARCH_7M__) \
65  || defined(__ARM_ARCH_7EM__)
66  #define ARM_MULTILIB_HAS_CPACR
67#endif
68
69#if !defined(__SOFTFP__)
70  #if defined(__ARM_NEON__)
71    #define ARM_MULTILIB_VFP_D32
72  #elif defined(__VFP_FP__)
73    #define ARM_MULTILIB_VFP_D16
74  #else
75    #error "FPU support not implemented"
76  #endif
77#endif
78
79#if defined(ARM_MULTILIB_VFP_D16) \
80  || defined(ARM_MULTILIB_VFP_D32)
81  #define ARM_MULTILIB_VFP
82#endif
83
84/*
85 *  Define the name of the CPU family.
86 */
87
88#define CPU_NAME "ARM"
89
90/** @} */
91
92#ifdef __cplusplus
93}
94#endif
95
96#endif /* _RTEMS_SCORE_ARM_H */
Note: See TracBrowser for help on using the repository browser.