Kernel message parameters are now longs
[akaros.git] / kern / arch / riscv / timer.h
1 #ifndef ROS_ARCH_TIMER_H
2 #define ROS_ARCH_TIMER_H
3
4 #define TSC_HZ 1000000000 // really, this is the core clock frequency
5
6 #include <ros/common.h>
7
8 typedef struct system_timing {
9         uint64_t tsc_freq;
10 } system_timing_t;
11
12 extern system_timing_t system_timing;
13
14 void timer_init(void);
15 void set_timer(uint32_t usec);
16
17 #endif /* !ROS_ARCH_TIMER_H */