Author: wma Date: Wed Feb 21 08:05:56 2018 New Revision: 329701 URL: https://svnweb.freebsd.org/changeset/base/329701
Log: CXGBE: implement prefetch on non-Intel architectures Submitted by: Michal Stanek <m...@semihalf.com> Obtained from: Semihalf Reviewed by: np, p...@semihalf.com Sponsored by: IBM, QCM Technologies Differential revision: https://reviews.freebsd.org/D14452 Modified: head/sys/dev/cxgbe/adapter.h Modified: head/sys/dev/cxgbe/adapter.h ============================================================================== --- head/sys/dev/cxgbe/adapter.h Wed Feb 21 05:04:58 2018 (r329700) +++ head/sys/dev/cxgbe/adapter.h Wed Feb 21 08:05:56 2018 (r329701) @@ -72,7 +72,7 @@ prefetch(void *x) __asm volatile("prefetcht0 %0" :: "m" (*(unsigned long *)x)); } #else -#define prefetch(x) +#define prefetch(x) __builtin_prefetch(x) #endif #ifndef SYSCTL_ADD_UQUAD _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"