summaryrefslogtreecommitdiffstats
path: root/arch/parisc/include
diff options
context:
space:
mode:
authorSven Schnelle2019-06-05 22:32:17 +0200
committerHelge Deller2019-06-08 12:56:25 +0200
commit4e87ace902cf0d401376cac89bb6a5239e57fe9f (patch)
treeb3f1f1321081715fbe035fa0ecf3cd1b9e3735de /arch/parisc/include
parentMerge tag 'drm-fixes-2019-06-07-1' of git://anongit.freedesktop.org/drm/drm (diff)
downloadkernel-qcow2-linux-4e87ace902cf0d401376cac89bb6a5239e57fe9f.tar.gz
kernel-qcow2-linux-4e87ace902cf0d401376cac89bb6a5239e57fe9f.tar.xz
kernel-qcow2-linux-4e87ace902cf0d401376cac89bb6a5239e57fe9f.zip
parisc: add support for patching multiple words
add patch_text_multiple() which allows to patch multiple text words in memory. This can be used to copy functions. Signed-off-by: Sven Schnelle <svens@stackframe.org> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc/include')
-rw-r--r--arch/parisc/include/asm/patch.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/parisc/include/asm/patch.h b/arch/parisc/include/asm/patch.h
index 685b58a13968..400d84c6e504 100644
--- a/arch/parisc/include/asm/patch.h
+++ b/arch/parisc/include/asm/patch.h
@@ -4,8 +4,10 @@
/* stop machine and patch kernel text */
void patch_text(void *addr, unsigned int insn);
+void patch_text_multiple(void *addr, u32 *insn, unsigned int len);
/* patch kernel text with machine already stopped (e.g. in kgdb) */
-void __patch_text(void *addr, unsigned int insn);
+void __patch_text(void *addr, u32 insn);
+void __patch_text_multiple(void *addr, u32 *insn, unsigned int len);
#endif