changeset 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 d2074d1102e0
children 19f5e7133949
files src/cs/layer1/cfile/l1_small.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/cs/layer1/cfile/l1_small.c	Thu Jul 19 01:04:05 2018 +0000
+++ b/src/cs/layer1/cfile/l1_small.c	Thu Jul 19 02:56:15 2018 +0000
@@ -99,6 +99,7 @@
 extern volatile Bool bspI2c_busLocked[BSP_I2C_NUM_DEVICES] ;
 #endif
 
+#ifndef __GNUC__
 /* NEW COMPILER MANAGEMENT
  * With compiler V3.00, the .text section must be explicitely
  * defined.
@@ -106,6 +107,7 @@
  * The change is applied to all compilers.
  */
   asm("           .sect   \".text\" ");
+#endif
 
 
 UWORD8 *mode_authorized = &(l1s.pw_mgr.mode_authorized);
@@ -221,6 +223,7 @@
 /* Called by TCT_Schedule main loop of Nucleus           */
 /*-------------------------------------------------------*/
 
+#ifndef __GNUC__
 
 asm("           .def    INT_Small_Sleep ");
 asm("INT_Small_Sleep  ");
@@ -354,3 +357,4 @@
 #endif
 #endif // OP_L1_STANDALONE
  
+#endif	/* __GNUC__ */