diff options
author | Sven Schnelle <svens@stackframe.org> | 2019-06-05 22:32:17 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2019-06-08 12:56:25 +0200 |
commit | 4e87ace902cf0d401376cac89bb6a5239e57fe9f (patch) | |
tree | b3f1f1321081715fbe035fa0ecf3cd1b9e3735de /arch/parisc/include | |
parent | 79c3ba3206c7680027f61fd4e3d6956a4154bf31 (diff) | |
download | blackbird-op-linux-4e87ace902cf0d401376cac89bb6a5239e57fe9f.tar.gz blackbird-op-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.h | 4 |
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 |