Home
last modified time | relevance | path

Searched hist:"636802 ef96eebe279b22ad9f9dacfe29291e45c7" (Results 1 – 1 of 1) sorted by relevance

/linux/arch/powerpc/lib/
H A Dcode-patching.cdiff 636802ef96eebe279b22ad9f9dacfe29291e45c7 Tue Sep 04 17:08:28 CEST 2012 Benjamin Herrenschmidt <benh@kernel.crashing.org> powerpc: Don't use __put_user() in patch_instruction

patch_instruction() can be called very early on ppc32, when the kernel
isn't yet running at it's linked address. That can cause the !
is_kernel_addr() test in __put_user() to trip and call might_sleep()
which is very bad at that point during boot.

Use a lower level function instead for now, at least until we get to
rework ppc32 boot process to do the code patching later, like ppc64
does.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>