diff options
author | Randall Stewart <rrs@FreeBSD.org> | 2018-06-07 19:57:55 +0000 |
---|---|---|
committer | Randall Stewart <rrs@FreeBSD.org> | 2018-06-07 19:57:55 +0000 |
commit | 12693c6c83e06666b5cff8356385961fc1233908 (patch) | |
tree | cb4330163d7715a9c32fbf6a087b8b0f5449023a | |
parent | 7ccdc068295378637bdf50ae4500d36e3282f8da (diff) | |
download | src-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
-rw-r--r-- | sys/sys/kern_prefetch.h | 2 |
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 } |