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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [rtems/] [src/] [msg.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*
2
 *  Message Queue Manager
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.OARcorp.com/rtems/license.html.
11
 *
12
 *  msg.c,v 1.26 2002/07/01 22:32:31 joel Exp
13
 */
14
 
15
#include <rtems/system.h>
16
#include <rtems/score/sysstate.h>
17
#include <rtems/score/chain.h>
18
#include <rtems/score/isr.h>
19
#include <rtems/score/coremsg.h>
20
#include <rtems/score/object.h>
21
#include <rtems/score/states.h>
22
#include <rtems/score/thread.h>
23
#include <rtems/score/wkspace.h>
24
#if defined(RTEMS_MULTIPROCESSING)
25
#include <rtems/score/mpci.h>
26
#endif
27
#include <rtems/rtems/status.h>
28
#include <rtems/rtems/attr.h>
29
#include <rtems/rtems/message.h>
30
#include <rtems/rtems/options.h>
31
#include <rtems/rtems/support.h>
32
 
33
/*PAGE
34
 *
35
 *  _Message_queue_Manager_initialization
36
 *
37
 *  This routine initializes all message queue manager related
38
 *  data structures.
39
 *
40
 *  Input parameters:
41
 *    maximum_message_queues - number of message queues to initialize
42
 *
43
 *  Output parameters:  NONE
44
 */
45
 
46
void _Message_queue_Manager_initialization(
47
  unsigned32 maximum_message_queues
48
)
49
{
50
  _Objects_Initialize_information(
51
    &_Message_queue_Information,  /* object information table */
52
    OBJECTS_CLASSIC_API,          /* object API */
53
    OBJECTS_RTEMS_MESSAGE_QUEUES, /* object class */
54
    maximum_message_queues,       /* maximum objects of this class */
55
    sizeof( Message_queue_Control ),
56
                               /* size of this object's control block */
57
    FALSE,                     /* TRUE if names of this object are strings */
58
    RTEMS_MAXIMUM_NAME_LENGTH  /* maximum length of each object's name */
59
#if defined(RTEMS_MULTIPROCESSING)
60
    ,
61
    FALSE,                     /* TRUE if this is a global object class */
62
    NULL                       /* Proxy extraction support callout */
63
#endif
64
  );
65
 
66
  /*
67
   *  Register the MP Process Packet routine.
68
   */
69
 
70
#if defined(RTEMS_MULTIPROCESSING)
71
  _MPCI_Register_packet_processor(
72
    MP_PACKET_MESSAGE_QUEUE,
73
    _Message_queue_MP_Process_packet
74
  );
75
#endif
76
 
77
}

powered by: WebSVN 2.1.0

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