1 | /* no_cpu.h |
---|
2 | * |
---|
3 | * This file is an example (i.e. "no CPU") of the file which is |
---|
4 | * created for each CPU family port of RTEMS. |
---|
5 | * |
---|
6 | * |
---|
7 | * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. |
---|
8 | * On-Line Applications Research Corporation (OAR). |
---|
9 | * |
---|
10 | * This material may be reproduced by or for the U.S. Government pursuant |
---|
11 | * to the copyright license under the clause at DFARS 252.227-7013. This |
---|
12 | * notice must appear in all copies of this file and its derivatives. |
---|
13 | * |
---|
14 | * $Id$ |
---|
15 | * |
---|
16 | */ |
---|
17 | |
---|
18 | #ifndef _INCLUDE_NO_CPU_h |
---|
19 | #define _INCLUDE_NO_CPU_h |
---|
20 | |
---|
21 | #ifdef __cplusplus |
---|
22 | extern "C" { |
---|
23 | #endif |
---|
24 | |
---|
25 | /* |
---|
26 | * The following define the CPU Family and Model within the family |
---|
27 | * |
---|
28 | * NOTE: The string "REPLACE_THIS_WITH_THE_CPU_MODEL" is replaced |
---|
29 | * with the name of the appropriate macro for this target CPU. |
---|
30 | */ |
---|
31 | |
---|
32 | #ifdef no_cpu |
---|
33 | #undef no_cpu |
---|
34 | #endif |
---|
35 | #define no_cpu |
---|
36 | |
---|
37 | #ifdef REPLACE_THIS_WITH_THE_CPU_MODEL |
---|
38 | #undef REPLACE_THIS_WITH_THE_CPU_MODEL |
---|
39 | #endif |
---|
40 | #define REPLACE_THIS_WITH_THE_CPU_MODEL |
---|
41 | |
---|
42 | #ifdef REPLACE_THIS_WITH_THE_BSP |
---|
43 | #undef REPLACE_THIS_WITH_THE_BSP |
---|
44 | #endif |
---|
45 | #define REPLACE_THIS_WITH_THE_BSP |
---|
46 | |
---|
47 | /* |
---|
48 | * This file contains the information required to build |
---|
49 | * RTEMS for a particular member of the "no cpu" |
---|
50 | * family when executing in protected mode. It does |
---|
51 | * this by setting variables to indicate which implementation |
---|
52 | * dependent features are present in a particular member |
---|
53 | * of the family. |
---|
54 | */ |
---|
55 | |
---|
56 | #if defined(no_cpu) |
---|
57 | |
---|
58 | #define CPU_MODEL_NAME "no_cpu" |
---|
59 | #define NOCPU_HAS_FPU 1 |
---|
60 | |
---|
61 | #else |
---|
62 | |
---|
63 | #error "Unsupported CPU Model" |
---|
64 | |
---|
65 | #endif |
---|
66 | |
---|
67 | /* |
---|
68 | * Define the name of the CPU family. |
---|
69 | */ |
---|
70 | |
---|
71 | #define CPU_NAME "NO CPU" |
---|
72 | |
---|
73 | #ifdef __cplusplus |
---|
74 | } |
---|
75 | #endif |
---|
76 | |
---|
77 | #endif /* ! _INCLUDE_NO_CPU_h */ |
---|
78 | /* end of include file */ |
---|