diff --git a/sys/i386/isa/bs/bsif.h b/sys/i386/isa/bs/bsif.h index 6dcc2ab1b86d..a0c880b8bc9d 100644 --- a/sys/i386/isa/bs/bsif.h +++ b/sys/i386/isa/bs/bsif.h @@ -106,6 +106,7 @@ #ifdef __FreeBSD__ #include +#include #include #include #include @@ -118,14 +119,12 @@ #include #include -#if 0 -#include -#endif #include #include #include #include +#include #endif /* __FreeBSD__ */ /*************************************************** @@ -209,9 +208,10 @@ u_int32_t bs_adapter_info __P((int)); #define delay(y) DELAY(y) extern int dma_init_flag; -#define softintr(y) ipending |= (1 << y) - -#endif /* IPENDING */ +#define softintr(y) do { \ + atomic_set_int(&spending, 1 << y); \ + sched_ithd((void*)SOFTINTR); \ +} while(0); static BS_INLINE void memcopy(from, to, len)