comparison gsm-fw/L1/cfile/l1_drive.c @ 923:10b4bed10192

gsm-fw/L1: fix for the DSP patch corruption bug The L1 code we got from the LoCosto fw contains a feature for DSP CPU load measurement. This feature is a LoCosto-ism, i.e., not applicable to earlier DBB chips (Calypso) with their respective earlier DSP ROMs. Most of the code dealing with that feature is conditionalized as #if (DSP >= 38), but one spot was missed, and the MCU code was writing into an API word dealing with this feature. In TCS211 this DSP API word happens to be used by the DSP code patch, hence that write was corrupting the patched DSP code.
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Mon, 19 Oct 2015 17:13:56 +0000
parents b3549e06db7e
children
comparison
equal deleted inserted replaced
922:fb3f04a62f71 923:10b4bed10192
1113 #endif 1113 #endif
1114 1114
1115 // Enable frame IT on next TDMA 1115 // Enable frame IT on next TDMA
1116 l1dmacro_set_frame_it(); 1116 l1dmacro_set_frame_it();
1117 1117
1118 #if (DSP >= 38)
1118 // DSP CPU load measurement - write logic (provide TDMA frame number to DSP) 1119 // DSP CPU load measurement - write logic (provide TDMA frame number to DSP)
1119 (*((volatile UWORD16 *)(DSP_CPU_LOAD_MCU_W_TDMA_FN))) = (API)l1s.actual_time.fn_mod42432; 1120 (*((volatile UWORD16 *)(DSP_CPU_LOAD_MCU_W_TDMA_FN))) = (API)l1s.actual_time.fn_mod42432;
1121 #endif
1120 1122
1121 #endif // NOT_SIMULATION 1123 #endif // NOT_SIMULATION
1122 } 1124 }
1123 1125
1124 /*-------------------------------------------------------*/ 1126 /*-------------------------------------------------------*/