Merge pull request #11353 from kvuorine/fwknop-fixes
[feed/packages.git] / utils / flashrom / patches / 030-ppc.patch
1 --- a/hwaccess.c
2 +++ b/hwaccess.c
3 @@ -71,7 +71,7 @@ static inline void sync_primitive(void)
4 * See also https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/memory-barriers.txt
5 */
6 #if IS_PPC // cf. http://lxr.free-electrons.com/source/arch/powerpc/include/asm/barrier.h
7 - asm("eieio" : : : "memory");
8 + __asm__ ("eieio" : : : "memory");
9 #elif IS_SPARC
10 #if defined(__sparc_v9__) || defined(__sparcv9)
11 /* Sparc V9 CPUs support three different memory orderings that range from x86-like TSO to PowerPC-like