Index: /usr/src/sys/compat/ndis/subr_hal.c =================================================================== --- /usr/src/sys/compat/ndis/subr_hal.c (revision 232379) +++ /usr/src/sys/compat/ndis/subr_hal.c (working copy) @@ -392,16 +392,17 @@ { uint8_t oldirql; + sched_pin(); oldirql = KeGetCurrentIrql(); /* I am so going to hell for this. */ if (oldirql > irql) panic("IRQL_NOT_LESS_THAN"); - if (oldirql != DISPATCH_LEVEL) { - sched_pin(); + if (oldirql != DISPATCH_LEVEL) mtx_lock(&disp_lock[curthread->td_oncpu]); - } + else + sched_unpin(); /*printf("RAISE IRQL: %d %d\n", irql, oldirql);*/ return (oldirql);