From 0c8c2cd6192a84096aa5c9dc931e831384ab1140 Mon Sep 17 00:00:00 2001 From: KATO Takenori Date: Fri, 8 Sep 2000 11:58:25 +0000 Subject: [PATCH] Fixed the softintr macro which directly accessed ipending. Suggested by: jasone --- sys/i386/isa/bs/bsif.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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)