1 IMPLEMENTATION[{ia32,amd64}-rtc_timer]:
9 //IMPLEMENT inline int Timer::irq() { return 8; }
12 unsigned Timer::irq() { return 8; }
14 PUBLIC static inline NEEDS["irq_chip.h"]
15 unsigned Timer::irq_mode()
16 { return Irq_base::Trigger_edge | Irq_base::Polarity_high; }
20 Timer::init(Cpu_number)
22 printf("Using the RTC on IRQ %d (%sHz) for scheduling\n", 8,
23 #ifdef CONFIG_SLOW_RTC
30 // set up timer interrupt (~ 1ms)
33 // make sure that PIT does pull its interrupt line
37 PUBLIC static inline NEEDS["rtc.h"]
41 // periodic scheduling is triggered by irq 8 connected with RTC
51 Timer::update_timer(Unsigned64)
53 // does nothing in periodic mode