kern

diff src/intr.c @ 29:8ea6debe4265

starting on the task switching implementation
author John Tsiombikas <nuclear@siggraph.org>
date Sat, 23 Apr 2011 00:51:18 +0300
parents eaec918de072
children a2c6110bd24b
line diff
     1.1 --- a/src/intr.c	Wed Apr 06 07:42:44 2011 +0300
     1.2 +++ b/src/intr.c	Sat Apr 23 00:51:18 2011 +0300
     1.3 @@ -159,7 +159,7 @@
     1.4  	desc->d[3] = (addr & 0xffff0000) >> 16;
     1.5  }
     1.6  
     1.7 -#define IS_TRAP(n)	((n) < 32)
     1.8 +#define IS_TRAP(n)	((n) >= 32 && !IS_IRQ(n))
     1.9  static void set_intr_entry(int num, void (*handler)(void))
    1.10  {
    1.11  	int type = IS_TRAP(num) ? GATE_TRAP : GATE_INTR;