kern
diff src/timer.c @ 35:06172322fb76
- made interrupt number - irq mapping macros public in intr.h
- disabled the interrupts in various vga driver functions
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 09 Jun 2011 05:09:49 +0300 |
parents | 17433fcaa563 |
children | 2c401f69128e |
line diff
1.1 --- a/src/timer.c Thu Jun 09 02:45:49 2011 +0300 1.2 +++ b/src/timer.c Thu Jun 09 05:09:49 2011 +0300 1.3 @@ -57,10 +57,8 @@ 1.4 outb(reload_count & 0xff, PORT_DATA0); 1.5 outb((reload_count >> 8) & 0xff, PORT_DATA0); 1.6 1.7 - nticks = 0; 1.8 - 1.9 /* set the timer interrupt handler */ 1.10 - interrupt(32, intr_handler); 1.11 + interrupt(IRQ_TO_INTR(0), intr_handler); 1.12 } 1.13 1.14 /* This will be called by the interrupt dispatcher approximately