source: rtems/cpukit/sapi/src/itronapi.c @ 3507c6df

4.104.115
Last change on this file since 3507c6df was 3507c6df, checked in by Joel Sherrill <joel.sherrill@…>, on 01/05/09 at 20:26:01

2009-01-05 Joel Sherrill <joel.sherrill@…>

  • libcsupport/src/gxx_wrappers.c, posix/include/mqueue.h, posix/include/rtems/posix/semaphore.h, posix/inline/rtems/posix/barrier.inl, posix/inline/rtems/posix/key.inl, posix/inline/rtems/posix/mqueue.inl, posix/inline/rtems/posix/rwlock.inl, posix/inline/rtems/posix/semaphore.inl, posix/inline/rtems/posix/spinlock.inl, posix/inline/rtems/posix/timer.inl, posix/src/condget.c, posix/src/mqueuenametoid.c, posix/src/mutexget.c, posix/src/semaphorenametoid.c, posix/src/semopen.c, sapi/src/itronapi.c, sapi/src/posixapi.c: Make changes necessary for all tests to run on SPARC with 16-bit Ids. This required ensuring that all POSIX and compilering binding code makes a distinction between the public Id type (e.g. pthread_t, etc.) and the RTEMS Object_Id type. All POSIX Object Get routines should not take the POSIX Id type as the argument. Sixteen bit RTEMS Ids should be placed into the 32-bits reserved by the POSIX API type in a uniform manner now. This removed all assumptions that the external Id types in POSIX and ITRON are the same as the internal Object Id type.
  • Property mode set to 100644
File size: 1.9 KB
Line 
1/*
2 *  ITRON API Initialization Support
3 *
4 *  NOTE:
5 *
6 *  COPYRIGHT (c) 1989-2008.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.rtems.com/license/LICENSE.
12 *
13 *  $Id$
14 */
15
16#if HAVE_CONFIG_H
17#include "config.h"
18#endif
19
20#include <assert.h>
21
22/*
23 *  ITRON_API_INIT is defined so all of the ITRON API
24 *  data will be included in this object file.
25 */
26
27#define ITRON_API_INIT
28
29#include <rtems/system.h>    /* include this before checking RTEMS_ITRON_API */
30#ifdef RTEMS_ITRON_API
31
32#include <rtems/itron.h>
33
34#include <sys/types.h>
35#include <rtems/config.h>
36#include <rtems/score/object.h>
37
38#include <rtems/itron/eventflags.h>
39#include <rtems/itron/fmempool.h>
40#include <rtems/itron/itronapi.h>
41#include <rtems/itron/mbox.h>
42#include <rtems/itron/msgbuffer.h>
43#include <rtems/itron/port.h>
44#include <rtems/itron/semaphore.h>
45#include <rtems/itron/task.h>
46#include <rtems/itron/vmempool.h>
47
48/*PAGE
49 *
50 *  _ITRON_API_Initialize
51 *
52 *  XXX
53 */
54
55Objects_Information *_ITRON_Objects[ OBJECTS_ITRON_CLASSES_LAST + 1 ];
56
57void _ITRON_API_Initialize(void)
58{
59  /*
60   * If there are any type size assumptions in the ITRON API, this is
61   * the appropriate place to place them.
62   *
63   * Currently, there are no none type size assumptions.
64   */
65
66  /*
67   * Install our API Object Management Table and initialize the
68   * various managers.
69   */
70  _Objects_Information_table[OBJECTS_ITRON_API] = _ITRON_Objects;
71
72  _ITRON_Task_Manager_initialization();
73  _ITRON_Semaphore_Manager_initialization();
74  _ITRON_Eventflags_Manager_initialization();
75  _ITRON_Fixed_memory_pool_Manager_initialization();
76  _ITRON_Mailbox_Manager_initialization();
77  _ITRON_Message_buffer_Manager_initialization();
78  _ITRON_Port_Manager_initialization();
79  _ITRON_Variable_memory_pool_Manager_initialization();
80}
81
82#endif
83/* end of file */
Note: See TracBrowser for help on using the repository browser.