FreeCalypso > hg > ffs-editor
comparison src/nucleus/hii.c @ 0:92470e5d0b9e
src: partial import from FC Selenite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 15 May 2020 01:28:16 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:92470e5d0b9e |
---|---|
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 /* hii.c Nucleus PLUS 1.14 */ | |
17 /* */ | |
18 /* COMPONENT */ | |
19 /* */ | |
20 /* HI - History Management */ | |
21 /* */ | |
22 /* DESCRIPTION */ | |
23 /* */ | |
24 /* This file contains the initialization routine for the History */ | |
25 /* Management component. */ | |
26 /* */ | |
27 /* DATA STRUCTURES */ | |
28 /* */ | |
29 /* None */ | |
30 /* */ | |
31 /* FUNCTIONS */ | |
32 /* */ | |
33 /* HII_Initialize History Management Initialize*/ | |
34 /* */ | |
35 /* DEPENDENCIES */ | |
36 /* */ | |
37 /* hi_defs.h History component 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 Replaced void with VOID, */ | |
46 /* resulting in 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 "hi_defs.h" /* History constants */ | |
60 #include "hi_extr.h" /* History interfaces */ | |
61 | |
62 | |
63 /* Define external inner-component global data references. */ | |
64 | |
65 extern INT HID_History_Enable; | |
66 extern INT HID_Write_Index; | |
67 extern INT HID_Read_Index; | |
68 extern INT HID_Entry_Count; | |
69 extern TC_PROTECT HID_History_Protect; | |
70 | |
71 | |
72 /*************************************************************************/ | |
73 /* */ | |
74 /* FUNCTION */ | |
75 /* */ | |
76 /* HII_Initialize */ | |
77 /* */ | |
78 /* DESCRIPTION */ | |
79 /* */ | |
80 /* This function initializes the data structures that control the */ | |
81 /* operation of the History component (HI). This routine must be */ | |
82 /* called from Supervisor mode in Supervisor/User mode switching */ | |
83 /* kernels. */ | |
84 /* */ | |
85 /* CALLED BY */ | |
86 /* */ | |
87 /* INC_Initialize System initialization */ | |
88 /* */ | |
89 /* CALLS */ | |
90 /* */ | |
91 /* None */ | |
92 /* */ | |
93 /* INPUTS */ | |
94 /* */ | |
95 /* None */ | |
96 /* */ | |
97 /* OUTPUTS */ | |
98 /* */ | |
99 /* HID_Current_Index Next available table index */ | |
100 /* HID_Entry_Count Counter of entries in table */ | |
101 /* HID_Table_Protect History table protection */ | |
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 /* 03-01-1994 Replaced void with VOID, */ | |
110 /* resulting in version 1.1 */ | |
111 /* */ | |
112 /* 03-18-1994 Verified version 1.1 */ | |
113 /* */ | |
114 /*************************************************************************/ | |
115 VOID HII_Initialize(VOID) | |
116 { | |
117 /* Initialize the history enable flag to false. */ | |
118 HID_History_Enable = NU_FALSE; | |
119 | |
120 /* Initialize the starting indices to the first entry. */ | |
121 HID_Write_Index = 0; | |
122 HID_Read_Index = 0; | |
123 | |
124 /* Initialize the entry counter to 0. */ | |
125 HID_Entry_Count = 0; | |
126 | |
127 /* Initialize the history protection structure. */ | |
128 HID_History_Protect.tc_tcb_pointer = NU_NULL; | |
129 } | |
130 | |
131 | |
132 | |
133 | |
134 | |
135 |