]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
The prefix for CLFLUSHOPT is 0x66. It was right on amd64.
authorkib <kib@FreeBSD.org>
Fri, 30 Oct 2015 09:53:33 +0000 (09:53 +0000)
committerkib <kib@FreeBSD.org>
Fri, 30 Oct 2015 09:53:33 +0000 (09:53 +0000)
Sponsored by: The FreeBSD Foundation

sys/i386/include/cpufunc.h

index ca7207d856632f7eb2110f1d5014d62711ff4e1c..f43319476d3fdf90d2b12700a4eef43fb73a3696 100644 (file)
@@ -89,7 +89,7 @@ static __inline void
 clflushopt(u_long addr)
 {
 
-       __asm __volatile(".byte 66;clflush %0" : : "m" (*(char *)addr));
+       __asm __volatile(".byte 0x66;clflush %0" : : "m" (*(char *)addr));
 }
 
 static __inline void