diff options
Diffstat (limited to 'src/sys/schedule.S')
-rw-r--r-- | src/sys/schedule.S | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sys/schedule.S b/src/sys/schedule.S index aa55ac2..dba8bd4 100644 --- a/src/sys/schedule.S +++ b/src/sys/schedule.S @@ -63,6 +63,10 @@ cleanup: bl get_rthread_roffset ldr r1, [r0, #0] add r1, #1 + cmp r1, #0x100 /* TQUEUE_MAX */ + blo 1f + mov r1, #0 +1: str r1, [r0, #0] // cleanup stack svc #3 |