Mike Rapoport (Microsoft)asm-generic: introduce text-patching.h0c3beac2 years agoHistory
29 lines · 669 B · C
RawDownload
// SPDX-License-Identifier: GPL-2.0#include <linux/kernel.h>#include <linux/jump_label.h>#include <asm/text-patching.h>#include <asm/insn.h> static void __arch_jump_label_transform(struct jump_entry *entry,					enum jump_label_type type,					bool is_static){	void *addr = (void *)entry->code;	unsigned int insn; 	if (type == JUMP_LABEL_JMP)		insn = arm_gen_branch(entry->code, entry->target);	else		insn = arm_gen_nop(); 	if (is_static)		__patch_text_early(addr, insn);	else		patch_text(addr, insn);} void arch_jump_label_transform(struct jump_entry *entry,			       enum jump_label_type type){	__arch_jump_label_transform(entry, type, false);}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t