jump_label.c (36ec807b627b4c0a0a382f0ae48eac7187d14b2b) jump_label.c (0c3beacf681ec897e0b36685a9b49d01f5cb2dfb)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2020 Emil Renner Berthing
4 *
5 * Based on arch/arm64/kernel/jump_label.c
6 */
7#include <linux/jump_label.h>
8#include <linux/kernel.h>
9#include <linux/memory.h>
10#include <linux/mutex.h>
11#include <asm/bug.h>
12#include <asm/cacheflush.h>
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2020 Emil Renner Berthing
4 *
5 * Based on arch/arm64/kernel/jump_label.c
6 */
7#include <linux/jump_label.h>
8#include <linux/kernel.h>
9#include <linux/memory.h>
10#include <linux/mutex.h>
11#include <asm/bug.h>
12#include <asm/cacheflush.h>
13#include <asm/patch.h>
13#include <asm/text-patching.h>
14
15#define RISCV_INSN_NOP 0x00000013U
16#define RISCV_INSN_JAL 0x0000006fU
17
18bool arch_jump_label_transform_queue(struct jump_entry *entry,
19 enum jump_label_type type)
20{
21 void *addr = (void *)jump_entry_code(entry);

--- 28 unchanged lines hidden ---
14
15#define RISCV_INSN_NOP 0x00000013U
16#define RISCV_INSN_JAL 0x0000006fU
17
18bool arch_jump_label_transform_queue(struct jump_entry *entry,
19 enum jump_label_type type)
20{
21 void *addr = (void *)jump_entry_code(entry);

--- 28 unchanged lines hidden ---