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