--- sys/i386/i386/intr_machdep.c 2008-11-22 17:01:24.000000000 +0800 +++ /var/current/mysrc/sys/i386/i386/intr_machdep.c 2008-11-22 19:54:07.000000000 +0800 @@ -230,11 +230,8 @@ intr_execute_handlers(struct intsrc *isrc, struct trapframe *frame) { struct intr_event *ie; - struct thread *td; int vector; - td = curthread; - /* * We count software interrupts when we process them. The * code here follows previous practice, but there's an