Angel Pons has uploaded this change for review.

View Change

hwaccess.c: Fix PowerPC memory barrier

Use `__asm__ __volatile__` as done in the Linux kernel. Also update
rotten link.

Change-Id: Ia84fd1362a1d39aca6269eef22ac994dee68ba4b
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
---
M hwaccess.c
1 file changed, 2 insertions(+), 2 deletions(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/70/52470/1
diff --git a/hwaccess.c b/hwaccess.c
index 48ccb34..da69076 100644
--- a/hwaccess.c
+++ b/hwaccess.c
@@ -70,8 +70,8 @@
*
* See also https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/memory-barriers.txt
*/
-#if IS_PPC // cf. http://lxr.free-electrons.com/source/arch/powerpc/include/asm/barrier.h
- asm("eieio" : : : "memory");
+#if IS_PPC // cf. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/powerpc/include/asm/barrier.h
+ __asm__ __volatile__ ("eieio" : : : "memory");
#elif IS_SPARC
#if defined(__sparc_v9__) || defined(__sparcv9)
/* Sparc V9 CPUs support three different memory orderings that range from x86-like TSO to PowerPC-like

To view, visit change 52470. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ia84fd1362a1d39aca6269eef22ac994dee68ba4b
Gerrit-Change-Number: 52470
Gerrit-PatchSet: 1
Gerrit-Owner: Angel Pons <th3fanbus@gmail.com>
Gerrit-MessageType: newchange