1 // SPDX-License-Identifier: GPL-2.0-only 1 2 /* 3 * Copyright (C) 2023 Loongson Technology Corp 4 * 5 * Based on arch/arm64/kernel/jump_label.c 6 */ 7 #include <linux/kernel.h> 8 #include <linux/jump_label.h> 9 #include <asm/inst.h> 10 11 void arch_jump_label_transform(struct jump_ent 12 { 13 u32 insn; 14 void *addr = (void *)jump_entry_code(e 15 16 if (type == JUMP_LABEL_JMP) 17 insn = larch_insn_gen_b(jump_e 18 else 19 insn = larch_insn_gen_nop(); 20 21 larch_insn_patch_text(addr, insn); 22 } 23
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.