Commit 94412e04 authored by Diana Craciun's avatar Diana Craciun Committed by Khalid Elmously

powerpc/fsl: Enable runtime patching if nospectre_v2 boot arg is used

BugLink: https://bugs.launchpad.net/bugs/1830176

commit 3bc8ea86 upstream.

If the user choses not to use the mitigations, replace
the code sequence with nops.
Signed-off-by: default avatarDiana Craciun <diana.craciun@nxp.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarJuerg Haefliger <juergh@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent 19236dc4
......@@ -320,6 +320,7 @@ void __init setup_arch(char **cmdline_p)
if ( ppc_md.progress ) ppc_md.progress("arch: exit", 0x3eab);
setup_barrier_nospec();
setup_spectre_v2();
paging_init();
......
......@@ -735,6 +735,7 @@ void __init setup_arch(char **cmdline_p)
ppc_md.setup_arch();
setup_barrier_nospec();
setup_spectre_v2();
paging_init();
......
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