# HG changeset patch # User Michael Spacefalcon # Date 1407698696 0 # Node ID 962f0d3a4e7e288e17302596916e554aa1d8b3f1 # Parent 9df89f93d3112db57ca4850011f3fe600af917ff gsm-fw/nucleus/tct.S: preparations for hooking in GSM small sleep just like how TI did it diff -r 9df89f93d311 -r 962f0d3a4e7e gsm-fw/nucleus/tct.S --- a/gsm-fw/nucleus/tct.S Sun Aug 10 17:58:02 2014 +0000 +++ b/gsm-fw/nucleus/tct.S Sun Aug 10 19:24:56 2014 +0000 @@ -82,6 +82,7 @@ */ #include "asm_defs.h" +#include "../include/config.h" .code 32 @@ -956,6 +957,7 @@ @ Wait until a thread (task or HISR) is available to execute. @ do @ { + .globl TCT_Schedule_Loop TCT_Schedule_Loop: @ } while ((!TCD_Execute_HISR) && (!TCD_Execute_Task)); @@ -965,7 +967,11 @@ BNE TCT_Schedule_Thread @ Found an HISR LDR r0,[r3, #0] @ Pickup highest priority Task ptr CMP r0,#0 @ Is there a task active? - BEQ TCT_Schedule_Loop @ If not, continue the search +#if CONFIG_INCLUDE_L1 + BEQ _GSM_Small_Sleep +#else + BEQ TCT_Schedule_Loop @ If not, continue the search +#endif @ Yes, either a task or an HISR is ready to execute. Lockout @ interrupts while the thread is transferred to.