summaryrefslogtreecommitdiff
path: root/kern/inc/timer.h
blob: 64c50114ec7d628b12f75d6aa82f8717055ffff0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/** @file timer.h
 *
 *  @brief timer functions.
 *
 *  @author Hanjie Wu (hanjiew)
 *  @bug No functional bugs
 */

#ifndef _TIMER_H_
#define _TIMER_H_

/** ticks passed */
extern unsigned int ticks;
/** timer heap lock */
extern spl_t timer_lock;
/** timers of sleeping threads */
extern heap_t timers;

/**
 * @brief initialize the timer
 */
void timer_init();

/**
 * @brief switch to LAPIC timer
 */
void setup_lapic_timer();

#endif