changeset 75:6738273be0b3

Nucleus gcc assembly modules compile
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 20 Jul 2018 05:51:53 +0000
parents d076885a0669
children a2052ac75672
files components/nucleus_intram src/nucleus/gcc/tct.S
diffstat 2 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/components/nucleus_intram	Fri Jul 20 05:40:33 2018 +0000
+++ b/components/nucleus_intram	Fri Jul 20 05:51:53 2018 +0000
@@ -35,3 +35,12 @@
 	SRCDIR=$SRC/nucleus/tms470
 	asm_file $SRCDIR/tmt.s
 fi
+
+if [ "$COMPILER" = gcc ]
+then
+	ASMFLAGS=-mthumb-interwork
+
+	SRCDIR=$SRC/nucleus/gcc
+	asm_file $SRCDIR/tct.S
+	asm_file $SRCDIR/tmt.S
+fi
--- a/src/nucleus/gcc/tct.S	Fri Jul 20 05:40:33 2018 +0000
+++ b/src/nucleus/gcc/tct.S	Fri Jul 20 05:51:53 2018 +0000
@@ -82,7 +82,6 @@
  */
 
 #include "asm_defs.h"
-#include "../include/config.h"
 
 	.code 32
 
@@ -967,7 +966,7 @@
         BNE     TCT_Schedule_Thread         @ Found an HISR
         LDR     r0,[r3, #0]                 @ Pickup highest priority Task ptr
         CMP     r0,#0                       @ Is there a task active?
-#if CONFIG_INCLUDE_L1
+#if 1 /* was CONFIG_INCLUDE_L1 in Citrine */
 	BEQ	_GSM_Small_Sleep
 #else
 	BEQ	TCT_Schedule_Loop           @ If not, continue the search