diff options
author | Christian Cunningham <cc@localhost> | 2022-02-01 18:39:44 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-02-01 18:39:44 -0700 |
commit | 33e35caf1104cdf5b8e1470112677f78b5e8dc59 (patch) | |
tree | b11ba4db4686aac737a11f703a32ce7f87e57660 /src | |
parent | f4435cb43b170c5125b002f67e250897fae69095 (diff) |
Fixed cryptic error due to roffset
Diffstat (limited to 'src')
-rw-r--r-- | src/sys/schedule.S | 4 | ||||
-rw-r--r-- | src/sys/schedule.c | 1 |
2 files changed, 5 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 diff --git a/src/sys/schedule.c b/src/sys/schedule.c index 0e9df78..6f2a72d 100644 --- a/src/sys/schedule.c +++ b/src/sys/schedule.c @@ -1,3 +1,4 @@ +#include <cpu.h> #include <globals.h> #include <graphics/lfb.h> #include <drivers/uart.h> |