]> git.baikalelectronics.ru Git - 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)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 21 Jan 2018 04:06:25 +0000 (15:06 +1100)
commitd73f2e02ab444557746ee088b8f6cedf617fa12e
tree4fa8acc3ff00f162c9eedf29ec9607f4aa0acf6d
parentd0cbe2cf477eb65416bc2502ed4e80c5944e52b1
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.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/code-patching.h
arch/powerpc/lib/code-patching.c
arch/powerpc/lib/feature-fixups.c