summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/isp/isp_freebsd.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/isp/isp_freebsd.h b/sys/dev/isp/isp_freebsd.h
index 50b46bbab4df..8497c2ba8c1c 100644
--- a/sys/dev/isp/isp_freebsd.h
+++ b/sys/dev/isp/isp_freebsd.h
@@ -74,6 +74,13 @@
#define ISP_SBUS_SUPPORTED 0
#endif
+/*
+ * Hackery- remove TARGET MODE when compiling as a module on sparc64
+ */
+#if defined(__sparc64__) && defined(KLD_MODULE) && defined(ISP_TARGET_MODE)
+#undef ISP_TARGET_MODE
+#endif
+
#define HANDLE_LOOPSTATE_IN_OUTER_LAYERS 1
/* #define ISP_SMPLOCK 1 */