RTEMS: cpukit/score/cpu/arm/include/rtems/score/arm.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
arm.h
Go to the documentation of this file.
1
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
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
92#ifdef __cplusplus
93}
94#endif
95
96#endif /* _RTEMS_SCORE_ARM_H */