mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
Add KeMemoryBarrier.
svn path=/trunk/; revision=13695
This commit is contained in:
parent
535d688d66
commit
6c64024a25
1 changed files with 9 additions and 0 deletions
|
@ -7606,6 +7606,15 @@ DDKAPI
|
|||
KeLeaveCriticalRegion(
|
||||
VOID);
|
||||
|
||||
static __inline
|
||||
VOID
|
||||
KeMemoryBarrier(
|
||||
VOID)
|
||||
{
|
||||
volatile LONG Barrier;
|
||||
__asm__ __volatile__ ("xchg %%eax, %0" : : "m" (Barrier) : "a");
|
||||
}
|
||||
|
||||
NTOSAPI
|
||||
LONG
|
||||
DDKAPI
|
||||
|
|
Loading…
Reference in a new issue