oops, interrupts on in syscall traps doesn't work after all

This commit is contained in:
rtm 2007-09-25 16:15:05 +00:00
parent 3eda2714e6
commit 355073ea9e

2
trap.c
View file

@ -20,7 +20,7 @@ tvinit(void)
for(i = 0; i < 256; i++)
SETGATE(idt[i], 0, SEG_KCODE<<3, vectors[i], 0);
SETGATE(idt[T_SYSCALL], 1, SEG_KCODE<<3, vectors[T_SYSCALL], DPL_USER);
SETGATE(idt[T_SYSCALL], 0, SEG_KCODE<<3, vectors[T_SYSCALL], DPL_USER);
initlock(&tickslock, "time");
}