From 09ae127f7d7870647235c1616a23b6af7a9c16fd Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Fri, 27 Jan 2006 00:46:10 +0000 Subject: [PATCH] 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. --- sys/dev/isp/isp_freebsd.h | 7 +++++++ 1 file changed, 7 insertions(+) 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 */