changeset 545:cc584a357886

gsm-fw/L1/include/l1_varex.h: section pragmas changed to gcc attributes
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 03 Aug 2014 06:29:53 +0000
parents 96a96ec34139
children c7e53436c451
files gsm-fw/L1/include/l1_varex.h
diffstat 1 files changed, 9 insertions(+), 25 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/L1/include/l1_varex.h	Sun Aug 03 06:06:45 2014 +0000
+++ b/gsm-fw/L1/include/l1_varex.h	Sun Aug 03 06:29:53 2014 +0000
@@ -9,41 +9,25 @@
 
 #ifdef L1_ASYNC_C
 
-#if (LONG_JUMP == 3)
- #pragma DATA_SECTION(l1s,".l1s_global")
- #pragma DATA_SECTION(l1s_dsp_com,".l1s_global")
- #pragma DATA_SECTION(l1a_l1s_com,".l1s_global")
- #pragma DATA_SECTION(l1s_tpu_com,".l1s_global")
- #pragma DATA_SECTION(l1_config,".l1s_global")
- #if (L1_MP3 == 1) || (L1_MIDI == 1) || (L1_AAC == 1) || (FF_L1_IT_DSP_USF == 1) || (FF_L1_IT_DSP_DTX == 1) || (L1_DYN_DSP_DWNLD == 1)   // equivalent to an API_HISR flag
-   #pragma DATA_SECTION(l1a_apihisr_com,".l1s_global")
- #endif
- #if (L1_MP3 == 1) || (L1_MIDI == 1) ||  (L1_DYN_DSP_DWNLD == 1) ||(L1_AAC == 1) // equivalent to an API_HISR flag
-   #pragma DATA_SECTION(l1_apihisr,".l1s_global")
- #endif
- #if (L1_MIDI == 1)
-   #pragma DATA_SECTION(midiparser_apihisr_com,".l1s_global")
- #endif
-#endif
-
- T_L1S_GLOBAL   l1s;
+ T_L1S_GLOBAL   l1s __attribute__ ((section (".l1s_global")));
  T_L1A_GLOBAL   l1a;
 
- T_L1A_L1S_COM  l1a_l1s_com;
- T_L1S_DSP_COM  l1s_dsp_com;
- T_L1S_TPU_COM  l1s_tpu_com;
+ T_L1A_L1S_COM  l1a_l1s_com __attribute__ ((section (".l1s_global")));
+ T_L1S_DSP_COM  l1s_dsp_com __attribute__ ((section (".l1s_global")));
+ T_L1S_TPU_COM  l1s_tpu_com __attribute__ ((section (".l1s_global")));
 #if (L1_MP3 == 1) || (L1_MIDI == 1 || (L1_AAC == 1) || (FF_L1_IT_DSP_USF == 1) || (FF_L1_IT_DSP_DTX == 1) || (L1_DYN_DSP_DWNLD == 1))    // equivalent to an API_HISR flag
- T_L1A_API_HISR_COM  l1a_apihisr_com;
+ T_L1A_API_HISR_COM  l1a_apihisr_com __attribute__ ((section (".l1s_global")));
 #endif
 #if (L1_MP3 == 1) || (L1_MIDI == 1) || (L1_AAC == 1) || (L1_DYN_DSP_DWNLD == 1)
- T_L1_API_HISR       l1_apihisr;
+ T_L1_API_HISR       l1_apihisr __attribute__ ((section (".l1s_global")));
 #endif
 #if (L1_MIDI == 1)
- T_MIDIPARSER_APIHISR_COM midiparser_apihisr_com;
+ T_MIDIPARSER_APIHISR_COM midiparser_apihisr_com
+	__attribute__ ((section (".l1s_global")));
 #endif
 
  // variables for L1 configuration
- T_L1_CONFIG    l1_config;
+ T_L1_CONFIG    l1_config __attribute__ ((section (".l1s_global")));
 #else
  extern T_L1S_GLOBAL   l1s;
  extern T_L1A_GLOBAL   l1a;