From 3448a072fab683b97c93922b2d150e530a22b5a3 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Sun, 2 Jan 2022 17:39:21 -0800 Subject: Reinstate lock for write --- src/sys/timer.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src') diff --git a/src/sys/timer.c b/src/sys/timer.c index d9c2f6b..9419f80 100644 --- a/src/sys/timer.c +++ b/src/sys/timer.c @@ -24,18 +24,11 @@ void increase_counter(void) } } -inline void hard_increase_counter(void) -{ - unsigned long* counter = (unsigned long*)exe_cnt_m.addr; - *counter += 1; -} - void c_timer(void) { // Reset the counter write_cntv_tval(cntfrq/CPS); - hard_increase_counter(); - //increase_counter(); + increase_counter(); status(); } -- cgit v1.2.1