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

4.104.114.84.95
Last change on this file since 5b9d6ddf was 88d594a, checked in by Joel Sherrill <joel.sherrill@…>, on 05/24/95 at 21:39:42

Fully tested on all in-house targets

  • 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 *  unix.h,v 1.2 1995/05/09 20:12:28 joel Exp
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 RTEMS_MODEL_NAME  "hpux"
68 
69#elif defined(solaris)
70 
71#define RTEMS_MODEL_NAME  "solaris"
72 
73#else
74 
75#error "Unsupported CPU Model"
76 
77#endif
78 
79#ifdef __cplusplus
80}
81#endif
82
83#endif
84/* end of include file */
85
Note: See TracBrowser for help on using the repository browser.