aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/mutex.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util/mutex.c b/src/util/mutex.c
index a60cea6..8e85f8f 100644
--- a/src/util/mutex.c
+++ b/src/util/mutex.c
@@ -67,6 +67,13 @@ void uart_mutexes(void)
uart_hexn((unsigned long)m->addr);
entry = entry->next;
}
+ unsigned long count = 0;
+ entry = mutex_manager.free.start.next;
+ while (entry->entry_type == VALUE_ENTRY) {
+ count++;
+ entry = entry->next;
+ }
+ uart_hexn(count);
}
void lock_mutex(struct Mutex* m)