source: rtems/cpukit/score/include/rtems/system.h @ dd687d9

4.104.114.84.95
Last change on this file since dd687d9 was dd687d9, checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 18:56:05

2003-09-04 Joel Sherrill <joel@…>

  • include/rtems/debug.h, include/rtems/seterr.h, include/rtems/system.h, include/rtems/score/address.h, include/rtems/score/apiext.h, include/rtems/score/apimutex.h, include/rtems/score/bitfield.h, include/rtems/score/chain.h, include/rtems/score/context.h, include/rtems/score/copyrt.h, include/rtems/score/coremsg.h, include/rtems/score/coremutex.h, include/rtems/score/coresem.h, include/rtems/score/heap.h, include/rtems/score/interr.h, include/rtems/score/isr.h, include/rtems/score/mpci.h, include/rtems/score/mppkt.h, include/rtems/score/object.h, include/rtems/score/objectmp.h, include/rtems/score/priority.h, include/rtems/score/stack.h, include/rtems/score/states.h, include/rtems/score/sysstate.h, include/rtems/score/thread.h, include/rtems/score/threadmp.h, include/rtems/score/threadq.h, include/rtems/score/tod.h, include/rtems/score/tqdata.h, include/rtems/score/userext.h, include/rtems/score/watchdog.h, include/rtems/score/wkspace.h, inline/rtems/score/address.inl, inline/rtems/score/chain.inl, inline/rtems/score/coremsg.inl, inline/rtems/score/coremutex.inl, inline/rtems/score/coresem.inl, inline/rtems/score/heap.inl, inline/rtems/score/isr.inl, inline/rtems/score/mppkt.inl, inline/rtems/score/object.inl, inline/rtems/score/objectmp.inl, inline/rtems/score/priority.inl, inline/rtems/score/stack.inl, inline/rtems/score/states.inl, inline/rtems/score/sysstate.inl, inline/rtems/score/thread.inl, inline/rtems/score/threadmp.inl, inline/rtems/score/tod.inl, inline/rtems/score/tqdata.inl, inline/rtems/score/userext.inl, inline/rtems/score/watchdog.inl, inline/rtems/score/wkspace.inl, macros/rtems/score/address.inl, macros/rtems/score/chain.inl, macros/rtems/score/coremsg.inl, macros/rtems/score/coremutex.inl, macros/rtems/score/coresem.inl, macros/rtems/score/heap.inl, macros/rtems/score/isr.inl, macros/rtems/score/mppkt.inl, macros/rtems/score/object.inl, macros/rtems/score/objectmp.inl, macros/rtems/score/priority.inl, macros/rtems/score/stack.inl, macros/rtems/score/states.inl, macros/rtems/score/sysstate.inl, macros/rtems/score/thread.inl, macros/rtems/score/threadmp.inl, macros/rtems/score/tod.inl, macros/rtems/score/tqdata.inl, macros/rtems/score/userext.inl, macros/rtems/score/watchdog.inl, macros/rtems/score/wkspace.inl, src/apiext.c, src/chain.c, src/coremsg.c, src/coremsgbroadcast.c, src/coremsgclose.c, src/coremsgflush.c, src/coremsgflushsupp.c, src/coremsgflushwait.c, src/coremsginsert.c, src/coremsgseize.c, src/coremsgsubmit.c, src/coremutex.c, src/coremutexflush.c, src/coremutexseize.c, src/coremutexsurrender.c, src/coresem.c, src/coresemflush.c, src/coresemseize.c, src/coresemsurrender.c, src/coretod.c, src/coretodset.c, src/coretodtickle.c, src/coretodtoseconds.c, src/coretodvalidate.c, src/heap.c, src/heapallocate.c, src/heapextend.c, src/heapfree.c, src/heapgetinfo.c, src/heapsizeofuserarea.c, src/heapwalk.c, src/interr.c, src/isr.c, src/iterateoverthreads.c, src/mpci.c, src/object.c, src/objectallocate.c, src/objectallocatebyindex.c, src/objectclearname.c, src/objectcomparenameraw.c, src/objectcomparenamestring.c, src/objectcopynameraw.c, src/objectcopynamestring.c, src/objectextendinformation.c, src/objectfree.c, src/objectget.c, src/objectgetbyindex.c, src/objectgetisr.c, src/objectgetnext.c, src/objectgetnoprotection.c, src/objectidtoname.c, src/objectinitializeinformation.c, src/objectmp.c, src/objectnametoid.c, src/objectshrinkinformation.c, src/thread.c, src/threadchangepriority.c, src/threadclearstate.c, src/threadclose.c, src/threadcreateidle.c, src/threaddelayended.c, src/threaddispatch.c, src/threadevaluatemode.c, src/threadget.c, src/threadhandler.c, src/threadidlebody.c, src/threadinitialize.c, src/threadloadenv.c, src/threadmp.c, src/threadq.c, src/threadqdequeue.c, src/threadqdequeuefifo.c, src/threadqdequeuepriority.c, src/threadqenqueue.c, src/threadqenqueuefifo.c, src/threadqenqueuepriority.c, src/threadqextract.c, src/threadqextractfifo.c, src/threadqextractpriority.c, src/threadqextractwithproxy.c, src/threadqfirst.c, src/threadqfirstfifo.c, src/threadqfirstpriority.c, src/threadqflush.c, src/threadqtimeout.c, src/threadready.c, src/threadreset.c, src/threadresettimeslice.c, src/threadrestart.c, src/threadresume.c, src/threadrotatequeue.c, src/threadsetpriority.c, src/threadsetstate.c, src/threadsettransient.c, src/threadstackallocate.c, src/threadstackfree.c, src/threadstart.c, src/threadstartmultitasking.c, src/threadsuspend.c, src/threadtickletimeslice.c, src/threadyieldprocessor.c, src/userext.c, src/watchdog.c, src/watchdogadjust.c, src/watchdoginsert.c, src/watchdogremove.c, src/watchdogtickle.c, src/wkspace.c: URL for license changed.
  • Property mode set to 100644
File size: 4.8 KB
Line 
1/*  system.h
2 *
3 *  This include file contains information that is included in every
4 *  function in the executive.  This must be the first include file
5 *  included in all internal RTEMS files.
6 *
7 *  COPYRIGHT (c) 1989-1999.
8 *  On-Line Applications Research Corporation (OAR).
9 *
10 *  The license and distribution terms for this file may be
11 *  found in the file LICENSE in this distribution or at
12 *  http://www.rtems.com/license/LICENSE.
13 *
14 *  $Id$
15 */
16
17#ifndef __RTEMS_SYSTEM_h
18#define __RTEMS_SYSTEM_h
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24/*
25 * Major, minor, revision version numbers of RTEMS.
26 * Use these macros to test for features in specific releases.
27 */
28#define __RTEMS_MAJOR__ 4
29#define __RTEMS_MINOR__ 6
30#define __RTEMS_REVISION__ 0
31
32/*
33 *  The cpu options include file defines all cpu dependent
34 *  parameters for this build of RTEMS.  It must be included
35 *  first so the basic macro definitions are in place.
36 */
37
38#include <rtems/score/cpuopts.h>
39
40/*
41 *  The following ensures that all data is declared in the space
42 *  of the initialization routine for either the Initialization Manager
43 *  or the initialization file for the appropriate API.  It is
44 *  referenced as "external" in every other file.
45 */
46
47#ifdef SCORE_INIT
48#undef  SCORE_EXTERN
49#define SCORE_EXTERN
50#else
51#undef  SCORE_EXTERN
52#define SCORE_EXTERN  extern
53#endif
54
55#ifdef SAPI_INIT
56#undef  SAPI_EXTERN
57#define SAPI_EXTERN
58#else
59#undef  SAPI_EXTERN
60#define SAPI_EXTERN  extern
61#endif
62
63#ifdef RTEMS_API_INIT
64#undef  RTEMS_EXTERN
65#define RTEMS_EXTERN
66#else
67#undef  RTEMS_EXTERN
68#define RTEMS_EXTERN  extern
69#endif
70
71#ifdef POSIX_API_INIT
72#undef  POSIX_EXTERN
73#define POSIX_EXTERN
74#else
75#undef  POSIX_EXTERN
76#define POSIX_EXTERN  extern
77#endif
78
79#ifdef ITRON_API_INIT
80#undef  ITRON_EXTERN
81#define ITRON_EXTERN
82#else
83#undef  ITRON_EXTERN
84#define ITRON_EXTERN  extern
85#endif
86
87/*
88 *  The following (in conjunction with compiler arguments) are used
89 *  to choose between the use of static inline functions and macro
90 *  functions.   The static inline implementation allows better
91 *  type checking with no cost in code size or execution speed.
92 */
93
94#ifdef USE_INLINES
95# ifdef __GNUC__
96#  define RTEMS_INLINE_ROUTINE static __inline__
97# else
98#  define RTEMS_INLINE_ROUTINE static inline
99# endif
100#else
101# define RTEMS_INLINE_ROUTINE
102#endif
103
104/*
105 *  The following are used by the POSIX implementation to catch bad paths.
106 */
107
108#ifdef RTEMS_POSIX_API
109int POSIX_MP_NOT_IMPLEMENTED( void );
110int POSIX_NOT_IMPLEMENTED( void );
111int POSIX_BOTTOM_REACHED( void );
112#endif
113
114/*
115 *  Include a base set of files.
116 */
117
118/*
119 * XXX: Eventually proc_ptr needs to disappear!!!
120 */
121
122typedef void * proc_ptr;
123
124/*
125 *  Define NULL
126 */
127
128#ifndef NULL
129#define NULL      0          /* NULL value */
130#endif
131
132/*
133 *  Boolean constants
134 */
135
136#if !defined( TRUE ) || (TRUE != 1)
137#undef TRUE
138#define TRUE     (1)
139#endif
140
141#if !defined( FALSE ) || (FALSE != 0)
142#undef FALSE
143#define FALSE     (0)
144#endif
145
146#include <rtems/score/cpu.h>        /* processor specific information */
147
148#define stringify( _x ) # _x
149
150#define RTEMS_offsetof(type, field) \
151        ((unsigned32) &(((type *) 0)->field))
152
153/*
154 *  The following is the extern for the RTEMS version string.
155 *  The contents of this string are CPU specific.
156 */
157
158extern const char _RTEMS_version[];         /* RTEMS version string */
159extern const char _Copyright_Notice[];      /* RTEMS copyright string */
160
161/*
162 *  The following defines the CPU dependent information table.
163 */
164
165SCORE_EXTERN rtems_cpu_table _CPU_Table;               /* CPU dependent info */
166
167/*
168 *  Macros to access CPU Table fields required by ALL ports.
169 *
170 *  NOTE: Similar macros to access port specific fields in in the
171 *        appropriate cpu.h file.
172 */
173
174#define rtems_cpu_configuration_get_table() \
175   (&_CPU_Table)
176
177#define rtems_cpu_configuration_get_pretasking_hook() \
178   (_CPU_Table.pretasking_hook)
179
180#define rtems_cpu_configuration_get_predriver_hook() \
181   (_CPU_Table.predriver_hook)
182
183#define rtems_cpu_configuration_get_postdriver_hook() \
184   (_CPU_Table.postdriver_hook)
185
186#define rtems_cpu_configuration_get_idle_task() \
187   (_CPU_Table.idle_task)
188
189#define rtems_cpu_configuration_get_do_zero_of_workspace() \
190   (_CPU_Table.do_zero_of_workspace)
191
192#define rtems_cpu_configuration_get_idle_task_stack_size() \
193   (_CPU_Table.idle_task_stack_size)
194
195#define rtems_cpu_configuration_get_interrupt_stack_size() \
196   (_CPU_Table.interrupt_stack_size)
197
198#define rtems_cpu_configuration_get_extra_mpci_receive_server_stack() \
199   (_CPU_Table.extra_mpci_receive_server_stack)
200
201#define rtems_cpu_configuration_get_stack_allocate_hook() \
202   (_CPU_Table.stack_allocate_hook)
203
204#define rtems_cpu_configuration_get_stack_free_hook() \
205   (_CPU_Table.stack_free_hook)
206
207/*
208 *  XXX weird RTEMS stuff that probably should be somewhere else.
209 */
210
211#define RTEMS_MAXIMUM_NAME_LENGTH sizeof(rtems_name)
212
213#ifdef __cplusplus
214}
215#endif
216
217#endif
218/* end of include file */
Note: See TracBrowser for help on using the repository browser.