comparison src/cs/layer1/dyn_dwl_cfile/l1_dyn_dwl_afunc.c @ 515:f2ebef402db8

L1_DYN_DSP_DWNLD=1 && MELODY_E2=0: clear dsp_debug_buf_start pointers in l1_disable_DSP_trace()
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 29 Jun 2018 05:09:01 +0000
parents 50a15a54801e
children
comparison
equal deleted inserted replaced
514:68e0373035d7 515:f2ebef402db8
433 if (dsp_ndb_ptr->d_debug_trace_type != 0x0000) 433 if (dsp_ndb_ptr->d_debug_trace_type != 0x0000)
434 { 434 {
435 l1a.dyn_dwnld.dsp_trace_level_copy = dsp_ndb_ptr->d_debug_trace_type; 435 l1a.dyn_dwnld.dsp_trace_level_copy = dsp_ndb_ptr->d_debug_trace_type;
436 dsp_ndb_ptr->d_debug_trace_type = (API)0x8000; /* 0x9000 in LoCosto */ 436 dsp_ndb_ptr->d_debug_trace_type = (API)0x8000; /* 0x9000 in LoCosto */
437 l1a.dyn_dwnld.trace_flag_blocked = TRUE; 437 l1a.dyn_dwnld.trace_flag_blocked = TRUE;
438
439 /*
440 * The following addition is FreeCalypso guesswork based on LoCosto
441 * source. It will only get compiled when L1_DYN_DSP_DWNLD=1 and
442 * MELODY_E2=0, and does not appear in our reference Leonardo object
443 * because MELODY_E2 disables DSP_DEBUG_TRACE_ENABLE.
444 */
445 #if (DSP_DEBUG_TRACE_ENABLE)
446 trace_info.dsp_debug_buf_start[0] = NULL;
447 trace_info.dsp_debug_buf_start[1] = NULL;
448 #endif
438 } 449 }
439 } 450 }
440 451
441 void l1_enable_DSP_trace() 452 void l1_enable_DSP_trace()
442 { 453 {