comparison nucleus/dmi.c @ 0:75a11d740a02

initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 09 Jun 2016 00:02:41 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:75a11d740a02
1 /*************************************************************************/
2 /* */
3 /* Copyright Mentor Graphics Corporation 2002 */
4 /* All Rights Reserved. */
5 /* */
6 /* THIS WORK CONTAINS TRADE SECRET AND PROPRIETARY INFORMATION WHICH IS */
7 /* THE PROPERTY OF MENTOR GRAPHICS CORPORATION OR ITS LICENSORS AND IS */
8 /* SUBJECT TO LICENSE TERMS. */
9 /* */
10 /*************************************************************************/
11
12 /*************************************************************************/
13 /* */
14 /* FILE NAME VERSION */
15 /* */
16 /* dmi.c Nucleus PLUS 1.14 */
17 /* */
18 /* COMPONENT */
19 /* */
20 /* DM - Dynamic Memory Management */
21 /* */
22 /* DESCRIPTION */
23 /* */
24 /* This file contains the initialization routine for the Dynamic */
25 /* Memory Management component. */
26 /* */
27 /* DATA STRUCTURES */
28 /* */
29 /* None */
30 /* */
31 /* FUNCTIONS */
32 /* */
33 /* DMI_Initialize Dynamic memory initialize */
34 /* */
35 /* DEPENDENCIES */
36 /* */
37 /* dm_defs.h Dynamic memory constants */
38 /* */
39 /* HISTORY */
40 /* */
41 /* DATE REMARKS */
42 /* */
43 /* 03-01-1993 Created initial version 1.0 */
44 /* 04-19-1993 Verified version 1.0 */
45 /* 03-01-1994 Modified copyright, resulting in */
46 /* version 1.1 */
47 /* */
48 /* 03-18-1994 Verified version 1.1 */
49 /* 04-17-1996 updated to version 1.2 */
50 /* 03-24-1998 Released version 1.3 */
51 /* 03-26-1999 Released 1.11m (new release */
52 /* numbering scheme) */
53 /* 04-17-2002 Released version 1.13m */
54 /* 11-07-2002 Released version 1.14 */
55 /*************************************************************************/
56 #define NU_SOURCE_FILE
57
58
59 #include "dm_defs.h" /* Dynamic memory constants */
60 #include "dm_extr.h" /* Dynamic memory interfaces */
61
62
63 /* Define external inner-component global data references. */
64
65 extern CS_NODE *DMD_Created_Pools_List;
66 extern UNSIGNED DMD_Total_Pools;
67 extern TC_PROTECT DMD_List_Protect;
68
69
70 /*************************************************************************/
71 /* */
72 /* FUNCTION */
73 /* */
74 /* DMI_Initialize */
75 /* */
76 /* DESCRIPTION */
77 /* */
78 /* This function initializes the data structures that control the */
79 /* operation of the Dynamic Memory component (DM). There are no */
80 /* dynamic memory pools initially. */
81 /* */
82 /* CALLED BY */
83 /* */
84 /* INC_Initialize System initialization */
85 /* */
86 /* CALLS */
87 /* */
88 /* None */
89 /* */
90 /* INPUTS */
91 /* */
92 /* None */
93 /* */
94 /* OUTPUTS */
95 /* */
96 /* DMD_Created_Pools_List List of created pools */
97 /* DMD_Total_Pools Number of created pools */
98 /* DMD_List_Protect Protection for pool list */
99 /* */
100 /* HISTORY */
101 /* */
102 /* DATE REMARKS */
103 /* */
104 /* 03-01-1993 Created initial version 1.0 */
105 /* 04-19-1993 Verified version 1.0 */
106 /* */
107 /*************************************************************************/
108 VOID DMI_Initialize(VOID)
109 {
110 /* Initialize the created dynamic memory pool list to NU_NULL. */
111 DMD_Created_Pools_List = NU_NULL;
112
113 /* Initialize the total number of created pools to 0. */
114 DMD_Total_Pools = 0;
115
116 /* Initialize the list protection structure. */
117 DMD_List_Protect.tc_tcb_pointer = NU_NULL;
118 }
119
120
121
122
123
124