powerpc wmb()

Momchil Velikov velco at fadata.bg
Sun Nov 18 23:58:27 EST 2001


wmb is defined as

#define wmb()  __asm__ __volatile__ ("eieio" : : : "memory")

however, ``eieio'' has no effect on memory, that is
Write Through Not Required, thus I think it should be

#define wmb()  __asm__ __volatile__ ("sync" : : : "memory")

Comments ?

Regards,
-velco

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list