From b62c324bde267a5a940b1d06f44f62a125aef50d Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Sat, 12 Mar 2022 14:55:04 -0800 Subject: Rapid Testing --- src/cpu/irq.c | 2 +- src/sys/schedule.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cpu/irq.c b/src/cpu/irq.c index 65300af..4947844 100644 --- a/src/cpu/irq.c +++ b/src/cpu/irq.c @@ -63,7 +63,7 @@ void c_irq_handler(void) add_thread(test_entry, 0, 2); timer_lock = 0; } - *nexttime = *timer_chi + 30000000; + *nexttime = *timer_chi + 8000000; *timer_cs = SYS_TIMER_SC_M0; } } diff --git a/src/sys/schedule.c b/src/sys/schedule.c index 9540d3d..287091c 100644 --- a/src/sys/schedule.c +++ b/src/sys/schedule.c @@ -202,7 +202,6 @@ void yield(void) // thus any threads of the same priority can be run first unsigned char priority = rthread->priority; struct ThreadQueue* trq = &scheduler.ready[priority]; - trq->read.entry->thread = 0; trq->read.entry = trq->read.entry->next; trq->write.entry->thread = rthread; trq->write.entry = trq->write.entry->next; -- cgit v1.2.1