source: rtems/cpukit/score/src/object.c @ b72e847b

4.8
Last change on this file since b72e847b was a8eed23, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/27/05 at 05:57:05

Include config.h.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*
2 *  Object Handler
3 *
4 *
5 *  COPYRIGHT (c) 1989-1999.
6 *  On-Line Applications Research Corporation (OAR).
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.rtems.com/license/LICENSE.
11 *
12 *  $Id$
13 */
14
15#if HAVE_CONFIG_H
16#include "config.h"
17#endif
18
19#include <rtems/system.h>
20#include <rtems/score/address.h>
21#include <rtems/score/chain.h>
22#include <rtems/score/object.h>
23#if defined(RTEMS_MULTIPROCESSING)
24#include <rtems/score/objectmp.h>
25#endif
26#include <rtems/score/thread.h>
27#include <rtems/score/wkspace.h>
28#include <rtems/score/sysstate.h>
29#include <rtems/score/isr.h>
30
31/*PAGE
32 *
33 *  _Objects_Handler_initialization
34 *
35 *  This routine initializes the object handler.
36 *
37 *  Input parameters:
38 *    node                   - local node
39 *    maximum_nodes          - number of nodes in the system
40 *    maximum_global_objects - number of configured global objects
41 *
42 *  Output parameters:  NONE
43 */
44
45void _Objects_Handler_initialization(
46  uint32_t   node,
47  uint32_t   maximum_nodes,
48  uint32_t   maximum_global_objects
49)
50{
51  if ( node < 1 || node > maximum_nodes )
52    _Internal_error_Occurred(
53      INTERNAL_ERROR_CORE,
54      TRUE,
55      INTERNAL_ERROR_INVALID_NODE
56    );
57
58#if defined(RTEMS_MULTIPROCESSING)
59  _Objects_Local_node    = node;
60  _Objects_Maximum_nodes = maximum_nodes;
61
62  _Objects_MP_Handler_initialization(
63    node,
64    maximum_nodes,
65    maximum_global_objects
66  );
67#endif
68}
Note: See TracBrowser for help on using the repository browser.