changeset 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 68e0373035d7
children 1ed9de6c90bd
files src/cs/layer1/dyn_dwl_cfile/l1_dyn_dwl_afunc.c
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/cs/layer1/dyn_dwl_cfile/l1_dyn_dwl_afunc.c	Fri Jun 29 04:53:00 2018 +0000
+++ b/src/cs/layer1/dyn_dwl_cfile/l1_dyn_dwl_afunc.c	Fri Jun 29 05:09:01 2018 +0000
@@ -435,6 +435,17 @@
     l1a.dyn_dwnld.dsp_trace_level_copy = dsp_ndb_ptr->d_debug_trace_type;
     dsp_ndb_ptr->d_debug_trace_type = (API)0x8000;	/* 0x9000 in LoCosto */
     l1a.dyn_dwnld.trace_flag_blocked = TRUE;
+
+    /*
+     * The following addition is FreeCalypso guesswork based on LoCosto
+     * source.  It will only get compiled when L1_DYN_DSP_DWNLD=1 and
+     * MELODY_E2=0, and does not appear in our reference Leonardo object
+     * because MELODY_E2 disables DSP_DEBUG_TRACE_ENABLE.
+     */
+    #if (DSP_DEBUG_TRACE_ENABLE)
+      trace_info.dsp_debug_buf_start[0] = NULL;
+      trace_info.dsp_debug_buf_start[1] = NULL;
+    #endif
   }
 }