[da215ded] | 1 | /** |
---|
[78623bce] | 2 | * @file |
---|
| 3 | * |
---|
[66fffc7] | 4 | * @brief ARM Assembler Support API |
---|
[da215ded] | 5 | */ |
---|
| 6 | |
---|
[5bb38e15] | 7 | /* |
---|
[08330bf] | 8 | * COPYRIGHT (c) 2000 Canon Research Centre France SA. |
---|
| 9 | * Emmanuel Raguet, mailto:raguet@crf.canon.fr |
---|
| 10 | * |
---|
[4f0b287] | 11 | * Copyright (c) 2002 Advent Networks, Inc. |
---|
| 12 | * Jay Monkman <jmonkman@adventnetworks.com> |
---|
| 13 | * |
---|
[08330bf] | 14 | * The license and distribution terms for this file may be |
---|
| 15 | * found in the file LICENSE in this distribution or at |
---|
[c499856] | 16 | * http://www.rtems.org/license/LICENSE. |
---|
[08330bf] | 17 | * |
---|
| 18 | */ |
---|
| 19 | |
---|
[7f70d1b7] | 20 | #ifndef _RTEMS_SCORE_ARM_H |
---|
| 21 | #define _RTEMS_SCORE_ARM_H |
---|
[08330bf] | 22 | |
---|
| 23 | #ifdef __cplusplus |
---|
| 24 | extern "C" { |
---|
| 25 | #endif |
---|
| 26 | |
---|
[78623bce] | 27 | /** |
---|
| 28 | * @addtogroup ScoreCPU |
---|
| 29 | */ |
---|
[b697bc6] | 30 | /**@{**/ |
---|
[78623bce] | 31 | |
---|
[3252126] | 32 | #if defined(__ARM_ARCH_7M__) || defined(__ARM_ARCH_7EM__) |
---|
[9dcc683] | 33 | #define CPU_MODEL_NAME "ARMv7M" |
---|
| 34 | #define ARM_MULTILIB_ARCH_V7M |
---|
[5759510] | 35 | #elif defined(__ARM_ARCH_6M__) |
---|
| 36 | #define CPU_MODEL_NAME "ARMv6M" |
---|
| 37 | #define ARM_MULTILIB_ARCH_V6M |
---|
[08330bf] | 38 | #else |
---|
[9dcc683] | 39 | #define CPU_MODEL_NAME "ARMv4" |
---|
| 40 | #define ARM_MULTILIB_ARCH_V4 |
---|
[08330bf] | 41 | #endif |
---|
| 42 | |
---|
[d9bd5cd6] | 43 | #if defined(__ARM_ARCH_7A__) \ |
---|
| 44 | || defined(__ARM_ARCH_7R__) \ |
---|
[e4b5289a] | 45 | || defined(__ARM_ARCH_7M__) \ |
---|
| 46 | || defined(__ARM_ARCH_7EM__) |
---|
[d9bd5cd6] | 47 | #define ARM_MULTILIB_HAS_WFI |
---|
[b4e8306] | 48 | #define ARM_MULTILIB_HAS_LOAD_STORE_EXCLUSIVE |
---|
[7c90670] | 49 | #define ARM_MULTILIB_HAS_BARRIER_INSTRUCTIONS |
---|
[d9bd5cd6] | 50 | #endif |
---|
| 51 | |
---|
[022851a] | 52 | #if defined(__ARM_ARCH_7A__) \ |
---|
| 53 | || defined(__ARM_ARCH_7R__) |
---|
| 54 | #define ARM_MULTILIB_HAS_THREAD_ID_REGISTER |
---|
| 55 | #endif |
---|
| 56 | |
---|
[0cb50ab] | 57 | #if defined(__ARM_ARCH_7A__) |
---|
| 58 | #define ARM_MULTILIB_CACHE_LINE_MAX_64 |
---|
| 59 | #endif |
---|
| 60 | |
---|
[b43c2e8] | 61 | #if defined(__ARM_ARCH_7A__) \ |
---|
| 62 | || defined(__ARM_ARCH_7M__) \ |
---|
| 63 | || defined(__ARM_ARCH_7EM__) |
---|
| 64 | #define ARM_MULTILIB_HAS_CPACR |
---|
| 65 | #endif |
---|
| 66 | |
---|
[8ae37323] | 67 | #if !defined(__SOFTFP__) |
---|
| 68 | #if defined(__ARM_NEON__) |
---|
| 69 | #define ARM_MULTILIB_VFP_D32 |
---|
| 70 | #elif defined(__VFP_FP__) |
---|
| 71 | #define ARM_MULTILIB_VFP_D16 |
---|
| 72 | #else |
---|
| 73 | #error "FPU support not implemented" |
---|
| 74 | #endif |
---|
| 75 | #endif |
---|
| 76 | |
---|
| 77 | #if defined(ARM_MULTILIB_VFP_D16) \ |
---|
| 78 | || defined(ARM_MULTILIB_VFP_D32) |
---|
| 79 | #define ARM_MULTILIB_VFP |
---|
[9c59c2d9] | 80 | #endif |
---|
| 81 | |
---|
[08330bf] | 82 | /* |
---|
| 83 | * Define the name of the CPU family. |
---|
| 84 | */ |
---|
| 85 | |
---|
| 86 | #define CPU_NAME "ARM" |
---|
| 87 | |
---|
[78623bce] | 88 | /** @} */ |
---|
| 89 | |
---|
[08330bf] | 90 | #ifdef __cplusplus |
---|
| 91 | } |
---|
| 92 | #endif |
---|
| 93 | |
---|
[f6ed46df] | 94 | #endif /* _RTEMS_SCORE_ARM_H */ |
---|