Skip to content

Commit

Permalink
[dev][arm-generic-timer] print initialization configuration
Browse files Browse the repository at this point in the history
This may be unsafe if the platform hasn't initialized a uart or console
by the time this is run. May need to revert or change this if it's an
issue.
  • Loading branch information
travisg committed Aug 11, 2024
1 parent 84053e4 commit 6f24850
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dev/timer/arm_generic/arm_generic_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,8 @@ void arm_generic_timer_init(int irq, uint32_t freq_override) {
unmask_interrupt(irq);

timer_irq = irq;

dprintf(INFO, "Generic timer initialized with freq %u Hz, irq %d\n", cntfrq, irq);
}

static void arm_generic_timer_init_secondary_cpu(uint level) {
Expand Down

0 comments on commit 6f24850

Please sign in to comment.