diff options
author | kib <kib@FreeBSD.org> | 2012-08-01 17:24:53 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2012-08-01 17:24:53 +0000 |
commit | 36babd37ca7f9addb238b81428902b296c388a0b (patch) | |
tree | 8776c93cddf827440e35f70225b9eea7d3772b7a /sys/amd64 | |
parent | 9c4b62fad8853cdccbe2f3a1900de7ec19bb52ca (diff) | |
download | FreeBSD-src-36babd37ca7f9addb238b81428902b296c388a0b.zip FreeBSD-src-36babd37ca7f9addb238b81428902b296c388a0b.tar.gz |
Add lfence().
MFC after: 1 week
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/include/cpufunc.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/amd64/include/cpufunc.h b/sys/amd64/include/cpufunc.h index 94d4133..881fcd2 100644 --- a/sys/amd64/include/cpufunc.h +++ b/sys/amd64/include/cpufunc.h @@ -290,6 +290,13 @@ popcntq(u_long mask) } static __inline void +lfence(void) +{ + + __asm __volatile("lfence" : : : "memory"); +} + +static __inline void mfence(void) { |