1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Set up Basic CPU Dependency Settings Based on Compiler Settings |
---|
5 | * |
---|
6 | * This file sets up basic CPU dependency settings based on |
---|
7 | * compiler settings. For example, it can determine if |
---|
8 | * floating point is available. This particular implementation |
---|
9 | * is specified to the NO CPU port. |
---|
10 | */ |
---|
11 | |
---|
12 | /* |
---|
13 | * COPYRIGHT (c) 1989-1999. |
---|
14 | * On-Line Applications Research Corporation (OAR). |
---|
15 | * |
---|
16 | * The license and distribution terms for this file may be |
---|
17 | * found in the file LICENSE in this distribution or at |
---|
18 | * http://www.rtems.org/license/LICENSE. |
---|
19 | */ |
---|
20 | |
---|
21 | #ifndef _RTEMS_SCORE_NO_CPU_H |
---|
22 | #define _RTEMS_SCORE_NO_CPU_H |
---|
23 | |
---|
24 | #ifdef __cplusplus |
---|
25 | extern "C" { |
---|
26 | #endif |
---|
27 | |
---|
28 | /* |
---|
29 | * This file contains the information required to build |
---|
30 | * RTEMS for a particular member of the NO CPU family. |
---|
31 | * It does this by setting variables to indicate which |
---|
32 | * implementation dependent features are present in a particular |
---|
33 | * member of the family. |
---|
34 | * |
---|
35 | * This is a good place to list all the known CPU models |
---|
36 | * that this port supports and which RTEMS CPU model they correspond |
---|
37 | * to. |
---|
38 | */ |
---|
39 | |
---|
40 | #if defined(rtems_multilib) |
---|
41 | /* |
---|
42 | * Figure out all CPU Model Feature Flags based upon compiler |
---|
43 | * predefines. |
---|
44 | */ |
---|
45 | |
---|
46 | #define CPU_MODEL_NAME "rtems_multilib" |
---|
47 | #define NOCPU_HAS_FPU 1 |
---|
48 | |
---|
49 | #elif defined(__m32r__) |
---|
50 | |
---|
51 | #define CPU_MODEL_NAME "m32r" |
---|
52 | #define NOCPU_HAS_FPU 1 |
---|
53 | |
---|
54 | #else |
---|
55 | |
---|
56 | #error "Unsupported CPU Model" |
---|
57 | |
---|
58 | #endif |
---|
59 | |
---|
60 | /* |
---|
61 | * Define the name of the CPU family. |
---|
62 | */ |
---|
63 | |
---|
64 | #define CPU_NAME "NO CPU" |
---|
65 | |
---|
66 | #ifdef __cplusplus |
---|
67 | } |
---|
68 | #endif |
---|
69 | |
---|
70 | #endif /* _RTEMS_SCORE_NO_CPU_H */ |
---|