parisc: add parisc code patching
authorSven Schnelle <svens@stackframe.org>
Thu, 4 Apr 2019 19:14:09 +0000 (21:14 +0200)
committerHelge Deller <deller@gmx.de>
Fri, 3 May 2019 21:47:38 +0000 (23:47 +0200)
commit620a53d522ba007a79fffc444bd75e8d3775f5b8
treec2931055351578f8912c41f629d44c500bba7fde
parentccfbc68d41c2db8f5e88128427fb5bfe3855ff9b
parisc: add parisc code patching

Instead of re-mapping the whole kernel text with RWX rights
add a patch_text() which can be used to replace instructions
in the kernel .text section. Based on the ARM implementation.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/patch.h [new file with mode: 0644]
arch/parisc/kernel/Makefile
arch/parisc/kernel/patch.c [new file with mode: 0644]