From 4d9e61b01339866bb00cefb59e13826a05a6be0e Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Wed, 16 Mar 2022 15:53:48 -0700 Subject: Add method to not allow duplicates --- src/cpu/irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cpu/irq.c') diff --git a/src/cpu/irq.c b/src/cpu/irq.c index 80ca7dd..694742a 100644 --- a/src/cpu/irq.c +++ b/src/cpu/irq.c @@ -61,7 +61,7 @@ void c_irq_handler(void) static char timer_lock = 0; if (!timer_lock) { timer_lock = 1; - add_thread(test_entry, 0, 2); + add_thread_without_duplicate(test_entry, 0, 2); timer_lock = 0; } *nexttime = *timer_chi + 8000000; -- cgit v1.2.1