aboutsummaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-02-13 13:22:43 -0700
committerChristian Cunningham <cc@localhost>2022-02-13 13:23:01 -0700
commit921398936d989aef06be8d869d9162e3d9b294b3 (patch)
tree62e1c575a2df812bfd2c5a7edaf13ed0528d1f4d /src/sys
parent5643e3587507f3351a2ebeb44a5d95d13470741d (diff)
Output the count of the task stacks
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/schedule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sys/schedule.c b/src/sys/schedule.c
index 5c7a546..1643670 100644
--- a/src/sys/schedule.c
+++ b/src/sys/schedule.c
@@ -33,6 +33,7 @@ void init_scheduler(void)
trb += 1;
}
}
+ sched_stack_count = 0;
// Initialize nextpid
nextpid = FIRST_AVAIL_PID;
}
@@ -84,6 +85,7 @@ void add_thread(void* pc, void* arg, unsigned char priority)
*(unsigned long**)argp = (unsigned long*)cleanup; // Set lr to the cleanup function
thread->sp = (void*)argp;
thread->status = THREAD_READY;
+ sched_stack_count++;
} else {
thread->sp_base = r.idx;
thread->sp = r.sp;