1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

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:
Konstantin Belousov 2018-10-16 17:00:42 +00:00
parent 94036a2587
commit 9d5d89b209
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=339384

View File

@ -115,6 +115,13 @@ clflushopt(u_long 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
clts(void)
{