FreeCalypso > hg > freecalypso-sw
changeset 570:962f0d3a4e7e
gsm-fw/nucleus/tct.S: preparations for hooking in GSM small sleep
just like how TI did it
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sun, 10 Aug 2014 19:24:56 +0000 |
parents | 9df89f93d311 |
children | 8d6062f4e7e4 |
files | gsm-fw/nucleus/tct.S |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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.