Commit c5a6edd4 authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Kleber Sacilotto de Souza

UBUNTU: SAUCE: powerpc: add osb barrier

CVE-2017-5753 (Spectre v1 Intel)
Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent 71585422
......@@ -36,6 +36,8 @@
#define smp_store_mb(var, value) do { WRITE_ONCE(var, value); smp_mb(); } while (0)
#define osb() 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