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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [rtems/] [src/] [msg.c] - Blame information for rev 666

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

Line No. Rev Author Line
1 30 unneback
/*
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
 *  $Id: msg.c,v 1.2 2001-09-27 11:59:19 chris 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,
52
    OBJECTS_RTEMS_MESSAGE_QUEUES,
53
    TRUE,
54
    maximum_message_queues,
55
    sizeof( Message_queue_Control ),
56
    FALSE,
57
    RTEMS_MAXIMUM_NAME_LENGTH,
58
    FALSE
59
  );
60
 
61
  /*
62
   *  Register the MP Process Packet routine.
63
   */
64
 
65
#if defined(RTEMS_MULTIPROCESSING)
66
  _MPCI_Register_packet_processor(
67
    MP_PACKET_MESSAGE_QUEUE,
68
    _Message_queue_MP_Process_packet
69
  );
70
#endif
71
 
72
}

powered by: WebSVN 2.1.0

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