comparison src/nucleus/evi.c @ 0:4e78acac3d88

src/{condat,cs,gpf,nucleus}: import from Selenite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 06:23:26 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4e78acac3d88
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 /* evi.c Nucleus PLUS 1.14 */
17 /* */
18 /* COMPONENT */
19 /* */
20 /* EV - Event Group Management */
21 /* */
22 /* DESCRIPTION */
23 /* */
24 /* This file contains the initialization routine for the Event */
25 /* Group Management component. */
26 /* */
27 /* DATA STRUCTURES */
28 /* */
29 /* None */
30 /* */
31 /* FUNCTIONS */
32 /* */
33 /* EVI_Initialize Event Group Management Init */
34 /* */
35 /* DEPENDENCIES */
36 /* */
37 /* ev_defs.h Event Group component const. */
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 "ev_defs.h" /* Event Group constants */
60 #include "ev_extr.h" /* Event Group interfaces */
61
62
63 /* Define external inner-component global data references. */
64
65 extern CS_NODE *EVD_Created_Event_Groups_List;
66 extern UNSIGNED EVD_Total_Event_Groups;
67 extern TC_PROTECT EVD_List_Protect;
68
69
70 /*************************************************************************/
71 /* */
72 /* FUNCTION */
73 /* */
74 /* EVI_Initialize */
75 /* */
76 /* DESCRIPTION */
77 /* */
78 /* This function initializes the data structures that control the */
79 /* operation of the Event Group component (EV). There are no */
80 /* event groups initially. This routine must be called from */
81 /* Supervisor mode in Supervisor/User mode switching kernels. */
82 /* */
83 /* CALLED BY */
84 /* */
85 /* INC_Initialize System initialization */
86 /* */
87 /* CALLS */
88 /* */
89 /* None */
90 /* */
91 /* INPUTS */
92 /* */
93 /* None */
94 /* */
95 /* OUTPUTS */
96 /* */
97 /* EVD_Created_Event_Groups_List List of created event groups */
98 /* EVD_Total_Event_Groups Number of created event */
99 /* groups */
100 /* EVD_List_Protect Protection for event group */
101 /* list */
102 /* */
103 /* HISTORY */
104 /* */
105 /* DATE REMARKS */
106 /* */
107 /* 03-01-1993 Created initial version 1.0 */
108 /* 04-19-1993 Verified version 1.0 */
109 /* */
110 /*************************************************************************/
111 VOID EVI_Initialize(VOID)
112 {
113 NU_SUPERV_USER_VARIABLES
114
115 /* Switch to supervisor mode */
116 NU_SUPERVISOR_MODE();
117
118 /* Initialize the created event group list to NU_NULL. */
119 EVD_Created_Event_Groups_List = NU_NULL;
120
121 /* Initialize the total number of created event groups to 0. */
122 EVD_Total_Event_Groups = 0;
123
124 /* Initialize the list protection structure. */
125 EVD_List_Protect.tc_tcb_pointer = NU_NULL;
126
127 /* Return to user mode */
128 NU_USER_MODE();
129 }
130
131
132
133
134
135