source: rtems/c/src/exec/score/cpu/unix/unix.h @ 5e9b32b

4.104.114.84.95
Last change on this file since 5e9b32b was 5e9b32b, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 26, 1995 at 7:27:15 PM

posix support initially added

  • Property mode set to 100644
File size: 1.9 KB
Line 
1/*  unix.h
2 *
3 *  This include file contains the definitions required by RTEMS
4 *  which are typical for a modern UNIX computer using GCC.
5 *
6 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
7 *  On-Line Applications Research Corporation (OAR).
8 *  All rights assigned to U.S. Government, 1994.
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#ifndef __UNIX_h
18#define __UNIX_h
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24/*
25 *  The following define the CPU Family and Model within the family
26 *
27 *  NOTE: The string "REPLACE_THIS_WITH_THE_CPU_MODEL" is replaced
28 *        with the name of the appropriate macro for this target CPU.
29 */
30 
31#ifdef unix
32#undef unix
33#endif
34#define unix
35
36#ifdef REPLACE_THIS_WITH_THE_CPU_FAMILY
37#undef REPLACE_THIS_WITH_THE_CPU_FAMILY
38#endif
39#define REPLACE_THIS_WITH_THE_CPU_FAMILY
40
41#ifdef REPLACE_THIS_WITH_THE_BSP
42#undef REPLACE_THIS_WITH_THE_BSP
43#endif
44#define REPLACE_THIS_WITH_THE_BSP
45
46#ifdef REPLACE_THIS_WITH_THE_CPU_MODEL
47#undef REPLACE_THIS_WITH_THE_CPU_MODEL
48#endif
49#define REPLACE_THIS_WITH_THE_CPU_MODEL
50
51#ifdef REPLACE_THIS_WITH_THE_UNIX_FLAVOR
52#undef REPLACE_THIS_WITH_THE_UNIX_FLAVOR
53#endif
54#define REPLACE_THIS_WITH_THE_UNIX_FLAVOR
55
56/*
57 *  This file contains the information required to build
58 *  RTEMS for a particular member of the "unix"
59 *  family when executing in protected mode.  It does
60 *  this by setting variables to indicate which implementation
61 *  dependent features are present in a particular member
62 *  of the family.
63 */
64 
65#if defined(hpux)
66 
67#define CPU_MODEL_NAME  "HP-UX"
68 
69#elif defined(solaris)
70 
71#define CPU_MODEL_NAME  "Solaris"
72 
73#elif defined(linux)
74 
75#define CPU_MODEL_NAME  "Linux"
76 
77#else
78 
79#error "Unsupported CPU Model"
80 
81#endif
82 
83#ifdef __cplusplus
84}
85#endif
86
87#endif
88/* end of include file */
89
Note: See TracBrowser for help on using the repository browser.