author | Christophe Leroy <christophe.leroy@c-s.fr> | |
Fri, 24 Nov 2017 07:31:09 +0000 (08:31 +0100) | ||
committer | Michael Ellerman <mpe@ellerman.id.au> | |
Sun, 21 Jan 2018 04:06:25 +0000 (15:06 +1100) | ||
commit | 8183d99f4a22c2abbc543847a588df3666ef0c0c | |
tree | 4fa8acc3ff00f162c9eedf29ec9607f4aa0acf6d | tree | snapshot (tar.xz tar.gz zip) |
parent | 8cf4c05712f04a405f0dacebcca8f042b391694a | commit | diff |
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>
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 | diff | blob | history | |
arch/powerpc/lib/code-patching.c | diff | blob | history | |
arch/powerpc/lib/feature-fixups.c | diff | blob | history |