aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/kern_prefetch.h
diff options
context:
space:
mode:
authorRandall Stewart <rrs@FreeBSD.org>2018-06-07 19:57:55 +0000
committerRandall Stewart <rrs@FreeBSD.org>2018-06-07 19:57:55 +0000
commit12693c6c83e06666b5cff8356385961fc1233908 (patch)
treecb4330163d7715a9c32fbf6a087b8b0f5449023a /sys/sys/kern_prefetch.h
parent7ccdc068295378637bdf50ae4500d36e3282f8da (diff)
downloadsrc-12693c6c83e06666b5cff8356385961fc1233908.tar.gz
src-12693c6c83e06666b5cff8356385961fc1233908.zip
Fix build issue with const and volatile and the
myriad ways that the various compliers treat this. The only safe prefetch appears to be for AMD. The other compilers either are not volatile or are not const :( Reported by: Michael Tuexen
Notes
Notes: svn path=/head/; revision=334813
Diffstat (limited to 'sys/sys/kern_prefetch.h')
-rw-r--r--sys/sys/kern_prefetch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/kern_prefetch.h b/sys/sys/kern_prefetch.h
index 6da5335778c2..dd6cf3fa19d7 100644
--- a/sys/sys/kern_prefetch.h
+++ b/sys/sys/kern_prefetch.h
@@ -34,7 +34,7 @@ kern_prefetch(const volatile void *addr, void* before)
#if defined(__amd64__)
__asm __volatile("prefetcht1 (%1)":"=rm"(*((int32_t *)before)):"r"(addr):);
#else
- __builtin_prefetch(addr);
+/* __builtin_prefetch(addr);*/
#endif
}