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

4.104.114.84.95
Last change on this file since bf61e45c was ac7d5ef0, checked in by Joel Sherrill <joel.sherrill@…>, on 05/11/95 at 17:39:37

Initial revision

  • Property mode set to 100644
File size: 2.4 KB
Line 
1/*  unix.h
2 *
3 *  This include file contains the basic type 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#define unix
32#define REPLACE_THIS_WITH_THE_CPU_FAMILY
33#define REPLACE_THIS_WITH_THE_BSP
34#define REPLACE_THIS_WITH_THE_CPU_MODEL
35#define REPLACE_THIS_WITH_THE_UNIX_FLAVOR
36 
37/*
38 *  This file contains the information required to build
39 *  RTEMS for a particular member of the "unix"
40 *  family when executing in protected mode.  It does
41 *  this by setting variables to indicate which implementation
42 *  dependent features are present in a particular member
43 *  of the family.
44 */
45 
46#if defined(hpux)
47 
48#define RTEMS_MODEL_NAME  "hpux"
49 
50#elif defined(solaris)
51 
52#define RTEMS_MODEL_NAME  "solaris"
53 
54#else
55 
56#error "Unsupported CPU Model"
57 
58#endif
59 
60#ifndef ASM
61
62/* type definitions */
63
64typedef unsigned char  unsigned8;       /* 8-bit  unsigned integer */
65typedef unsigned short unsigned16;      /* 16-bit unsigned integer */
66typedef unsigned int   unsigned32;      /* 32-bit unsigned integer */
67typedef unsigned long long unsigned64;  /* 64-bit unsigned integer */
68
69typedef unsigned16     Priority_Bit_map_control;
70
71typedef char           signed8;    /* 8-bit signed integer  */
72typedef short          signed16;   /* 16-bit signed integer */
73typedef int            signed32;   /* 32-bit signed integer */
74typedef long long      signed64;   /* 64-bit signed integer */
75
76typedef unsigned32 boolean;     /* Boolean value   */
77
78typedef float          single_precision;     /* single precision float */
79typedef double         double_precision;     /* double precision float */
80
81typedef void ( *unix_isr_entry )( void );
82
83#ifdef __cplusplus
84}
85#endif
86
87#endif /* !ASM */
88#endif
89/* end of include file */
90
Note: See TracBrowser for help on using the repository browser.