cfenollosa_os-tutorial/20-interrupts-timer/kernel/kernel.c

14 lines
270 B
C
Raw Normal View History

2015-03-17 19:47:43 +00:00
#include "../cpu/isr.h"
#include "../cpu/timer.h"
2015-03-20 10:39:30 +00:00
#include "../drivers/keyboard.h"
2015-03-17 19:47:43 +00:00
void main() {
isr_install();
asm volatile("sti");
2015-03-20 15:42:19 +00:00
init_timer(50);
2015-03-20 10:39:30 +00:00
/* Comment out the timer IRQ handler to read
* the keyboard IRQs easier */
init_keyboard();
2015-03-17 19:47:43 +00:00
}