Sven Schnelle | 620a53d | 2019-04-04 21:14:09 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | #ifndef _PARISC_KERNEL_PATCH_H |
| 3 | #define _PARISC_KERNEL_PATCH_H |
| 4 | |
| 5 | /* stop machine and patch kernel text */ |
| 6 | void patch_text(void *addr, unsigned int insn); |
Sven Schnelle | 4e87ace | 2019-06-05 22:32:17 +0200 | [diff] [blame] | 7 | void patch_text_multiple(void *addr, u32 *insn, unsigned int len); |
Sven Schnelle | 620a53d | 2019-04-04 21:14:09 +0200 | [diff] [blame] | 8 | |
| 9 | /* patch kernel text with machine already stopped (e.g. in kgdb) */ |
Sven Schnelle | 4e87ace | 2019-06-05 22:32:17 +0200 | [diff] [blame] | 10 | void __patch_text(void *addr, u32 insn); |
| 11 | void __patch_text_multiple(void *addr, u32 *insn, unsigned int len); |
Sven Schnelle | 620a53d | 2019-04-04 21:14:09 +0200 | [diff] [blame] | 12 | |
| 13 | #endif |