I've been looking through BaseLib and found the MemoryFence function. I can see the implementations in Ia32/GccInline.c and X64/GccInline.c, but I don't see anything for VC++ except the empty function in X86MemoryFence.c . There's _ReadWriteBarrier in BaseIoLibIntrinsic (the comment in IoLibMsc.c should probably read "...to the compiler and does _not_ emit code" - the "not" is currently missing) but MemoryFence doesn't appear to make use of it.
Also, since MemoryFence appears similar to the x86 mfence instruction, should the documentation be updated to make it clear it's only an instruction to the compiler and doesn't issue a CPU fence operation? -- Bruce ------------------------------------------------------------------------------ _______________________________________________ edk2-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/edk2-devel
