1 // ------------------------------------------------------------------------
7 static void bootstrap();
10 // ------------------------------------------------------------------------
16 #include <sys/types.h>
17 #include "boot_info.h"
18 #include "initcalls.h"
23 PUBLIC static inline NEEDS["pic.h"]
25 Timer::irq() { return Pic::Irq_timer; }
29 Timer::irq_mode() { return 0; }
31 IMPLEMENT FIASCO_INIT_CPU
35 if (Boot_info::irq0_disabled())
38 if (!Pic::setup_irq_prov(Pic::Irq_timer, Boot_info::irq0_path(), bootstrap))
40 puts ("Problems setting up timer interrupt!");
45 IMPLEMENT FIASCO_INIT_CPU
49 close(Boot_info::fd());
50 execl(Boot_info::irq0_path(), "[I](irq0)", NULL);
61 Timer::update_timer(Unsigned64)
63 // does nothing in periodic mode