# HG changeset patch # User Mychaela Falconia # Date 1458793601 0 # Node ID 33a5b73001134bdaed295bfd8789926eb5af0392 # Parent 3557ef98f01315c45044a23816b2ca09029ebca2 l1_async.c: l1a_dedicated_process(): dynamic dwnld reconstructed, but other differences remain to be analysed diff -r 3557ef98f013 -r 33a5b7300113 chipsetsw/layer1/cfile/l1_async.c --- a/chipsetsw/layer1/cfile/l1_async.c Sat Mar 05 00:59:10 2016 +0000 +++ b/chipsetsw/layer1/cfile/l1_async.c Thu Mar 24 04:26:41 2016 +0000 @@ -116,6 +116,7 @@ #include "l1aac_signa.h" #endif #if (L1_DYN_DSP_DWNLD == 1) + #include #include "l1_dyn_dwl_signa.h" #endif @@ -5800,9 +5801,10 @@ { enum states { - RESET = 0, - WAIT_INIT = 1, - WAIT_MSG = 2 + RESET = 0, + WAIT_INIT = 1, + WAIT_DYN_DWNLD = 2, + WAIT_MSG = 3 }; T_DEDIC_SET *free_set; @@ -5938,18 +5940,46 @@ // Set "fset" pointer to the new parameter set. l1a_l1s_com.dedic_set.fset = free_set; - // Give new msg code to L1S. - l1a_l1s_com.dedic_set.SignalCode = MPHC_IMMED_ASSIGN_REQ; - - #if (TRACE_TYPE==5) && FLOWCHART - trace_flowchart_dedic(l1a_l1s_com.dedic_set.SignalCode); - #endif - - // Set confirmation message name. - l1a.confirm_SignalCode = MPHC_IMMED_ASSIGN_CON; - - // step in state machine. - *state = WAIT_MSG; + /* + * FreeCalypso: the following logic related to dynamic DSP + * patching has been reconstructed from our only available + * binary object version. + */ + #if (L1_DYN_DSP_DWNLD == 1) + if (l1a.dyn_dwnld.semaphore_vect[DEDI_STATE_MACHINE]==GREEN) + #endif + { + // Give new msg code to L1S. + l1a_l1s_com.dedic_set.SignalCode = MPHC_IMMED_ASSIGN_REQ; + + #if (TRACE_TYPE==5) && FLOWCHART + trace_flowchart_dedic(l1a_l1s_com.dedic_set.SignalCode); + #endif + + // Set confirmation message name. + l1a.confirm_SignalCode = MPHC_IMMED_ASSIGN_CON; + + // step in state machine. + *state = WAIT_MSG; + } + #if (L1_DYN_DSP_DWNLD == 1) + else + { + *state = WAIT_DYN_DWNLD; + #if ((TRACE_TYPE == 1) || (TRACE_TYPE == 4) || (TRACE_TYPE == 5)) + if((trace_info.current_config->l1_dyn_trace) & (1<l1_dyn_trace) & (1<