diff options
Diffstat (limited to 'src/sys/core.c')
-rw-r--r-- | src/sys/core.c | 14 |
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); |