diff options
author | mjacob <mjacob@FreeBSD.org> | 2006-01-27 00:46:10 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2006-01-27 00:46:10 +0000 |
commit | 41a6066c80c73d93c3fa53c72be293ac0cff3fb5 (patch) | |
tree | a19b7a29bb73eaa9415de451dd061a881e9d636f | |
parent | 3299c77864b359b88db45b3a7f1b8e8ff8b48d70 (diff) | |
download | FreeBSD-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.h | 7 |
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 */ |