comparison src/cs/layer1/cfile/l1_small.c @ 48:c56f1d6202f5

l1_small.c: disable TMS470 assembly for gcc
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 19 Jul 2018 02:56:15 +0000
parents b6a5e36de839
children bd1301884216
comparison
equal deleted inserted replaced
47:d2074d1102e0 48:c56f1d6202f5
97 97
98 // This could be removed if i2c_pwr_interface is functional 98 // This could be removed if i2c_pwr_interface is functional
99 extern volatile Bool bspI2c_busLocked[BSP_I2C_NUM_DEVICES] ; 99 extern volatile Bool bspI2c_busLocked[BSP_I2C_NUM_DEVICES] ;
100 #endif 100 #endif
101 101
102 #ifndef __GNUC__
102 /* NEW COMPILER MANAGEMENT 103 /* NEW COMPILER MANAGEMENT
103 * With compiler V3.00, the .text section must be explicitely 104 * With compiler V3.00, the .text section must be explicitely
104 * defined. 105 * defined.
105 * Else the following code will be put in the .cinit section. 106 * Else the following code will be put in the .cinit section.
106 * The change is applied to all compilers. 107 * The change is applied to all compilers.
107 */ 108 */
108 asm(" .sect \".text\" "); 109 asm(" .sect \".text\" ");
110 #endif
109 111
110 112
111 UWORD8 *mode_authorized = &(l1s.pw_mgr.mode_authorized); 113 UWORD8 *mode_authorized = &(l1s.pw_mgr.mode_authorized);
112 UWORD8 *switch_PWR_MNGT = &(l1_config.pwr_mngt); 114 UWORD8 *switch_PWR_MNGT = &(l1_config.pwr_mngt);
113 115
219 /* Description: small sleep */ 221 /* Description: small sleep */
220 /* ------------ */ 222 /* ------------ */
221 /* Called by TCT_Schedule main loop of Nucleus */ 223 /* Called by TCT_Schedule main loop of Nucleus */
222 /*-------------------------------------------------------*/ 224 /*-------------------------------------------------------*/
223 225
226 #ifndef __GNUC__
224 227
225 asm(" .def INT_Small_Sleep "); 228 asm(" .def INT_Small_Sleep ");
226 asm("INT_Small_Sleep "); 229 asm("INT_Small_Sleep ");
227 230
228 /* NEW COMPILER MANAGEMENT 231 /* NEW COMPILER MANAGEMENT
352 asm(" .ref _ti_profiler_nb_sleep_call "); 355 asm(" .ref _ti_profiler_nb_sleep_call ");
353 asm("profiler_counter .word _ti_profiler_nb_sleep_call "); 356 asm("profiler_counter .word _ti_profiler_nb_sleep_call ");
354 #endif 357 #endif
355 #endif // OP_L1_STANDALONE 358 #endif // OP_L1_STANDALONE
356 359
360 #endif /* __GNUC__ */