interrupts during system calls
"It just works."
This commit is contained in:
parent
ab08960f64
commit
af7366c945
1 changed files with 1 additions and 1 deletions
2
trap.c
2
trap.c
|
@ -20,7 +20,7 @@ tvinit(void)
|
||||||
|
|
||||||
for(i = 0; i < 256; i++)
|
for(i = 0; i < 256; i++)
|
||||||
SETGATE(idt[i], 0, SEG_KCODE<<3, vectors[i], 0);
|
SETGATE(idt[i], 0, SEG_KCODE<<3, vectors[i], 0);
|
||||||
SETGATE(idt[T_SYSCALL], 0, SEG_KCODE<<3, vectors[T_SYSCALL], DPL_USER);
|
SETGATE(idt[T_SYSCALL], 1, SEG_KCODE<<3, vectors[T_SYSCALL], DPL_USER);
|
||||||
|
|
||||||
initlock(&tickslock, "time");
|
initlock(&tickslock, "time");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue