mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
CXGBE: implement prefetch on non-Intel architectures
Submitted by: Michal Stanek <mst@semihalf.com> Obtained from: Semihalf Reviewed by: np, pdk@semihalf.com Sponsored by: IBM, QCM Technologies Differential revision: https://reviews.freebsd.org/D14452
This commit is contained in:
parent
4f437f9eab
commit
19a5b68236
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue