--- sys/compat/ndis/kern_windrv.c 2008-11-22 14:40:19.000000000 +0800 +++ /var/current/mysrc/sys/compat/ndis/kern_windrv.c 2008-11-27 18:55:53.000000000 +0800 @@ -878,13 +878,10 @@ x86_oldldt(dummy) void *dummy; { - struct thread *t; struct x86desc *gdt; struct gdt gtable; uint16_t ltable; - t = curthread; - mtx_lock_spin(&dt_lock); /* Grab location of existing GDT. */