comparison src/cs/services/etm/etm_env.c @ 110:49254db81128

implemented fix for the L1/ETM boot time race condition bug
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 06 Oct 2016 00:13:12 +0000
parents 45ceec943347
children
comparison
equal deleted inserted replaced
109:45ceec943347 110:49254db81128
35 /** 35 /**
36 * Pointer on the structure gathering all the global variables 36 * Pointer on the structure gathering all the global variables
37 * used by ETM instance. 37 * used by ETM instance.
38 */ 38 */
39 T_ETM_ENV_CTRL_BLK *etm_env_ctrl_blk = NULL; 39 T_ETM_ENV_CTRL_BLK *etm_env_ctrl_blk = NULL;
40
41 /* FreeCalypso addition */
42 int etm_is_running;
40 43
41 44
42 /****************************************************************************** 45 /******************************************************************************
43 * Function : etm_get_info 46 * Function : etm_get_info
44 * 47 *
164 * 167 *
165 ******************************************************************************/ 168 ******************************************************************************/
166 169
167 T_RVM_RETURN etm_init(void) 170 T_RVM_RETURN etm_init(void)
168 { 171 {
172 etm_is_running = 1; /* FreeCalypso addition */
169 return RVM_OK; 173 return RVM_OK;
170 } 174 }
171 175
172 176
173 /****************************************************************************** 177 /******************************************************************************
205 * 209 *
206 ******************************************************************************/ 210 ******************************************************************************/
207 211
208 T_RVM_RETURN etm_stop(void) 212 T_RVM_RETURN etm_stop(void)
209 { 213 {
214 etm_is_running = 0; /* FreeCalypso addition */
210 return RVM_OK; 215 return RVM_OK;
211 } 216 }
212 217
213 /****************************************************************************** 218 /******************************************************************************
214 * Function : etm_kill 219 * Function : etm_kill