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:
parent
94036a2587
commit
9d5d89b209
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=339384
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user