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

4.104.114.95
Last change on this file since a04d5d3 was a04d5d3, checked in by Ralf Corsepius <ralf.corsepius@…>, on 09/04/08 at 17:33:40

Stop using old-style function definitions.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*
2 *  Object Handler
3 *
4 *
5 *  COPYRIGHT (c) 1989-2007.
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
45#if defined(RTEMS_MULTIPROCESSING)
46void _Objects_Handler_initialization(
47  uint32_t   node,
48  uint32_t   maximum_nodes,
49  uint32_t   maximum_global_objects )
50#else
51void _Objects_Handler_initialization(void)
52#endif
53{
54#if defined(RTEMS_MULTIPROCESSING)
55  if ( node < 1 || node > maximum_nodes )
56    _Internal_error_Occurred(
57      INTERNAL_ERROR_CORE,
58      TRUE,
59      INTERNAL_ERROR_INVALID_NODE
60    );
61
62  _Objects_Local_node    = node;
63  _Objects_Maximum_nodes = maximum_nodes;
64
65  _Objects_MP_Handler_initialization(
66    node,
67    maximum_nodes,
68    maximum_global_objects
69  );
70#endif
71}
Note: See TracBrowser for help on using the repository browser.