Author: kib Date: Fri Oct 19 00:44:06 2018 New Revision: 339437 URL: https://svnweb.freebsd.org/changeset/base/339437
Log: MFC r339384: Add clwb(). Modified: stable/11/sys/amd64/include/cpufunc.h Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/amd64/include/cpufunc.h ============================================================================== --- stable/11/sys/amd64/include/cpufunc.h Fri Oct 19 00:37:47 2018 (r339436) +++ stable/11/sys/amd64/include/cpufunc.h Fri Oct 19 00:44:06 2018 (r339437) @@ -114,6 +114,13 @@ clflushopt(u_long addr) } static __inline void +clwb(u_long addr) +{ + + __asm __volatile("clwb %0" : : "m" (*(char *)addr)); +} + +static __inline void clts(void) { _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"