]> git.buserror.net Git - polintos/scott/priv.git/blob - include/c/lowlevel/barriers.h
minor doc updates
[polintos/scott/priv.git] / include / c / lowlevel / barriers.h
1 #ifndef _LL_BARRIERS_H
2 #define _LL_BARRIERS_H
3
4 #include <lowlevel/arch.h>
5
6 // A simple compilation barrier.  This is not privileged.
7 static inline void ll_barrier()
8 {
9         asm volatile("" : : : "memory");
10 }
11
12 #include _LL_INC(barriers.h)
13
14 #endif