OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [score/] [macros/] [rtems/] [score/] [objectmp.inl] - Blame information for rev 773

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  macros/objectmp.inl
2
 *
3
 *  This include file contains the bodies of all inlined routines
4
 *  which deal with global objects.
5
 *
6
 *  COPYRIGHT (c) 1989-1999.
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.OARcorp.com/rtems/license.html.
12
 *
13
 *  $Id: objectmp.inl,v 1.2 2001-09-27 11:59:34 chris Exp $
14
 */
15
 
16
#ifndef __MACROS_MP_OBJECTS_inl
17
#define __MACROS_MP_OBJECTS_inl
18
 
19
/*PAGE
20
 *
21
 *  _Objects_MP_Allocate_global_object
22
 *
23
 */
24
 
25
#define _Objects_MP_Allocate_global_object() \
26
  (Objects_MP_Control *) \
27
           _Chain_Get( &_Objects_MP_Inactive_global_objects )
28
 
29
/*PAGE
30
 *  _Objects_MP_Free_global_object
31
 *
32
 */
33
 
34
#define _Objects_MP_Free_global_object( _the_object ) \
35
  _Chain_Append( \
36
    &_Objects_MP_Inactive_global_objects, \
37
    &(_the_object)->Object.Node \
38
  )
39
 
40
/*PAGE
41
 *  _Objects_MP_Is_null_global_object
42
 *
43
 */
44
 
45
#define _Objects_MP_Is_null_global_object( _the_object ) \
46
  ( (_the_object) == NULL )
47
 
48
#endif
49
/* end of include file */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.