summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2006-01-27 00:46:10 +0000
committermjacob <mjacob@FreeBSD.org>2006-01-27 00:46:10 +0000
commit41a6066c80c73d93c3fa53c72be293ac0cff3fb5 (patch)
treea19b7a29bb73eaa9415de451dd061a881e9d636f
parent3299c77864b359b88db45b3a7f1b8e8ff8b48d70 (diff)
downloadFreeBSD-src-41a6066c80c73d93c3fa53c72be293ac0cff3fb5.zip
FreeBSD-src-41a6066c80c73d93c3fa53c72be293ac0cff3fb5.tar.gz
Hackamatic: turn off target mode on Sparc64 with KLD_MODULE- this triggers
a compiler error I have no idea what its about. This should unbreak tinderbox for now.
-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 50b46bb..8497c2b 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 */
OpenPOWER on IntegriCloud