source: rtems/cpukit/rtems/src/dpmem.c @ 07fdc9c2

4.104.115
Last change on this file since 07fdc9c2 was 6f1384c, checked in by Joel Sherrill <joel.sherrill@…>, on 05/21/07 at 23:19:36

Split Classic API data instantiation into individual files. This reduces the size of the BSS section when an optional manageer stub is used. Some tests showed about a 600 byte reduction in BSS size. Also eliminated the variables _RTEMS_tasks_User_initialization_tasks and _RTEMS_tasks_Number_of_initialization_tasks because they were only used in one place after initialized. It was a waste of space.

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/*
2 *  Dual Port Memory Manager
3 *
4 *  COPYRIGHT (c) 1989-1999.
5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *  $Id$
12 */
13
14#if HAVE_CONFIG_H
15#include "config.h"
16#endif
17
18#include <rtems/system.h>
19#include <rtems/rtems/status.h>
20#include <rtems/rtems/support.h>
21#include <rtems/score/address.h>
22#include <rtems/rtems/dpmem.h>
23#include <rtems/score/object.h>
24#include <rtems/score/thread.h>
25
26/*PAGE
27 *
28 *  _Dual_ported_memory_Manager_initialization
29 *
30 *  This routine initializes all dual-ported memory manager related
31 *  data structures.
32 *
33 *  Input parameters:
34 *    maximum_ports - number of ports to initialize
35 *
36 *  Output parameters:  NONE
37 */
38
39void _Dual_ported_memory_Manager_initialization(
40  uint32_t   maximum_ports
41)
42{
43  _Objects_Initialize_information(
44    &_Dual_ported_memory_Information, /* object information table */
45    OBJECTS_CLASSIC_API,              /* object API */
46    OBJECTS_RTEMS_PORTS,              /* object class */
47    maximum_ports,                    /* maximum objects of this class */
48    sizeof( Dual_ported_memory_Control ),
49                                  /* size of this object's control block */
50    FALSE,                        /* TRUE if names of this object are strings */
51    RTEMS_MAXIMUM_NAME_LENGTH     /* maximum length of each object's name */
52#if defined(RTEMS_MULTIPROCESSING)
53    ,
54    FALSE,                        /* TRUE if this is a global object class */
55    NULL                          /* Proxy extraction support callout */
56#endif
57  );
58}
Note: See TracBrowser for help on using the repository browser.