Commit b6ea5c00 authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Marcelo Henrique Cerri

powerpc: add gmb barrier

CVE-2017-5753
CVE-2017-5715
Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
(backported from commit 1d40e84780e12578489810065695f5e72c7d1b89)
Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
parent 844132fe
......@@ -36,6 +36,8 @@
#define smp_store_mb(var, value) do { WRITE_ONCE(var, value); smp_mb(); } while (0)
#define gmb() asm volatile("ori 31,31,0")
#ifdef __SUBARCH_HAS_LWSYNC
# define SMPWMB LWSYNC
#else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment