kern

diff src/intr.c @ 41:928b0ebfff4d

merged the timer/rtc/etc from the misc branch
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 14 Jun 2011 01:19:07 +0300
parents a2c6110bd24b 06172322fb76
children e6de3c6015cb
line diff
     1.1 --- a/src/intr.c	Sat May 28 08:06:47 2011 +0300
     1.2 +++ b/src/intr.c	Tue Jun 14 01:19:07 2011 +0300
     1.3 @@ -12,14 +12,6 @@
     1.4  #define GATE_DEFAULT	(1 << 11)
     1.5  #define GATE_PRESENT	(1 << 15)
     1.6  
     1.7 -/* offset used to remap IRQ numbers (+32) */
     1.8 -#define IRQ_OFFSET		32
     1.9 -/* conversion macros between IRQ and interrupt numbers */
    1.10 -#define IRQ_TO_INTR(x)	((x) + IRQ_OFFSET)
    1.11 -#define INTR_TO_IRQ(x)	((x) - IRQ_OFFSET)
    1.12 -/* checks whether a particular interrupt is an remapped IRQ */
    1.13 -#define IS_IRQ(n)	((n) >= IRQ_OFFSET && (n) < IRQ_OFFSET + 16)
    1.14 -
    1.15  /* PIC command and data ports */
    1.16  #define PIC1_CMD	0x20
    1.17  #define PIC1_DATA	0x21