aboutsummaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-03-22 19:11:58 -0700
committerChristian Cunningham <cc@localhost>2022-03-22 19:11:58 -0700
commit4e1880672f38ceb600c7dc7d3179dbb9f11f792d (patch)
treefcdf214519d3a4c1d00a71053915a235f8d682ad /src/sys
parent8c1d4830ae5f8c9ec6cb1fe3df41be3300a820bd (diff)
Working on time
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/core.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/sys/core.c b/src/sys/core.c
index ef8d4b7..d76b712 100644
--- a/src/sys/core.c
+++ b/src/sys/core.c
@@ -33,13 +33,13 @@ void sysinit(void)
store32(1<<25, IRQ_ENABLE2);
// Enable Timer
//// Get the frequency
- //cntfrq = read_cntfrq();
- //// Clear cntv interrupt and set next 1 second timer
- //write_cntv_tval(cntfrq/100);
- //// Route timer to core0 fiq
- //routing_core0cntv_to_core0fiq();
- //// Enable timer
- //enablecntv();
+ cntfrq = read_cntfrq();
+ // Clear cntv interrupt and set next 1 second timer
+ write_cntv_tval(cntfrq);
+ // Route timer to core0 fiq
+ routing_core0cntv_to_core0fiq();
+ // Enable timer
+ enablecntv();
// Enable system timer
store32(SYS_TIMER_SC_M0, IRQ_ENABLE1);