blob: 400d84c6e504d81c2648e01ef7680c001c926688 [file] [log] [blame]
Sven Schnelle620a53d2019-04-04 21:14:09 +02001/* 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 */
6void patch_text(void *addr, unsigned int insn);
Sven Schnelle4e87ace2019-06-05 22:32:17 +02007void patch_text_multiple(void *addr, u32 *insn, unsigned int len);
Sven Schnelle620a53d2019-04-04 21:14:09 +02008
9/* patch kernel text with machine already stopped (e.g. in kgdb) */
Sven Schnelle4e87ace2019-06-05 22:32:17 +020010void __patch_text(void *addr, u32 insn);
11void __patch_text_multiple(void *addr, u32 *insn, unsigned int len);
Sven Schnelle620a53d2019-04-04 21:14:09 +020012
13#endif