]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
powerpc/lib/feature-fixups: use raw_patch_instruction()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 24 Nov 2017 07:31:09 +0000 (08:31 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 23 Apr 2019 15:48:55 +0000 (17:48 +0200)
commit56c684d5a1506f5824c9ada6f00d59bab50e0099
treec38ea61f23aae3d44dca7d161026c27c0799353a
parent2548b03251da2e71afe7f8d5a5de97247a6d0725
powerpc/lib/feature-fixups: use raw_patch_instruction()

feature fixups need to use patch_instruction() early in the boot,
even before the code is relocated to its final address, requiring
patch_instruction() to use PTRRELOC() in order to address data.

But feature fixups applies on code before it is set to read only,
even for modules. Therefore, feature fixups can use
raw_patch_instruction() instead.

BugLink: https://bugs.launchpad.net/bugs/1822870
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
(cherry picked from commit 8183d99f4a22c2abbc543847a588df3666ef0c0c)
Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
arch/powerpc/include/asm/code-patching.h
arch/powerpc/lib/code-patching.c
arch/powerpc/lib/feature-fixups.c