diff options
author | Christian Cunningham <cc@localhost> | 2022-01-02 17:39:21 -0800 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-01-02 17:39:21 -0800 |
commit | 3448a072fab683b97c93922b2d150e530a22b5a3 (patch) | |
tree | d2b952c38a0ade85c5c2669f3f923a6b5dc3d1ef | |
parent | a4a15ad39d8231c11f74f4e5c4b74b9e5547f22e (diff) |
Reinstate lock for write
-rw-r--r-- | src/sys/timer.c | 9 |
1 files changed, 1 insertions, 8 deletions
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(); } |