mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
620a53d522
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>
12 lines
318 B
C
12 lines
318 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _PARISC_KERNEL_PATCH_H
|
|
#define _PARISC_KERNEL_PATCH_H
|
|
|
|
/* stop machine and patch kernel text */
|
|
void patch_text(void *addr, unsigned int insn);
|
|
|
|
/* patch kernel text with machine already stopped (e.g. in kgdb) */
|
|
void __patch_text(void *addr, unsigned int insn);
|
|
|
|
#endif
|