Add clwb().

Reviewed by:	alc, markj
Sponsored by:	The FreeBSD Foundation
Approved by:	re (gjb)
MFC after:	3 days
Differential revision:	https://reviews.freebsd.org/D17070
This commit is contained in:
kib 2018-10-16 17:00:42 +00:00
parent 86890cbdd5
commit fcee4d935b

View File

@ -115,6 +115,13 @@ clflushopt(u_long addr)
__asm __volatile(".byte 0x66;clflush %0" : : "m" (*(char *)addr)); __asm __volatile(".byte 0x66;clflush %0" : : "m" (*(char *)addr));
} }
static __inline void
clwb(u_long addr)
{
__asm __volatile("clwb %0" : : "m" (*(char *)addr));
}
static __inline void static __inline void
clts(void) clts(void)
{ {