- Remove unneeded machine/ipl.h #include.
- Change the softintr() macro to do nothing on FreeBSD. Previously, this macro would set a bit in spending and schedule the softinterrupt thread to run. However, the bs driver never actually registers a a software interrupt handler, so all this work achieved nothing. From the code it is not clear what exactly the softintr() macro is actually supposed to be doing. It looks like it is supposed to be possibly running the hardware interrupt handler maybe? This handler is only present in the #ifdef __NetBSD__ code however. I have no idea how this driver handles interrupts at all, but at least it compiles now.
This commit is contained in:
parent
cba5b33d1a
commit
62a010fecf
@ -117,7 +117,6 @@
|
||||
#include <machine/cpu.h>
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/vmparam.h>
|
||||
#include <machine/ipl.h>
|
||||
#include <machine/dvcfg.h>
|
||||
|
||||
#include <cam/scsi/scsi_all.h>
|
||||
@ -209,12 +208,8 @@ static BS_INLINE void memcopy __P((void *from, void *to, register size_t len));
|
||||
u_int32_t bs_adapter_info __P((int));
|
||||
#define delay(y) DELAY(y)
|
||||
extern int dma_init_flag;
|
||||
extern volatile u_int spending;
|
||||
|
||||
#define softintr(y) do { \
|
||||
atomic_set_int(&spending, 1 << y); \
|
||||
sched_softintr(); \
|
||||
} while(0);
|
||||
#define softintr(y)
|
||||
|
||||
static BS_INLINE void
|
||||
memcopy(from, to, len)
|
||||
|
Loading…
Reference in New Issue
Block a user