Home
last modified time | relevance | path

Searched refs:hi20 (Results 1 – 3 of 3) sorted by relevance

/linux/arch/riscv/kernel/
H A Dmodule.c207 s32 hi20 = ((s32)v + 0x800) & 0xfffff000; in apply_r_riscv_lo12_i_rela() local
208 s32 lo12 = ((s32)v - hi20); in apply_r_riscv_lo12_i_rela()
217 s32 hi20 = ((s32)v + 0x800) & 0xfffff000; in apply_r_riscv_lo12_s_rela() local
218 s32 lo12 = ((s32)v - hi20); in apply_r_riscv_lo12_s_rela()
247 u32 hi20, lo12; in apply_r_riscv_call_plt_rela() local
261 hi20 = (offset + 0x800) & 0xfffff000; in apply_r_riscv_call_plt_rela()
262 lo12 = (offset - hi20) & 0xfff; in apply_r_riscv_call_plt_rela()
263 riscv_insn_rmw(location, 0xfff, hi20); in apply_r_riscv_call_plt_rela()
271 u32 hi20, lo12; in apply_r_riscv_call_rela() local
280 hi20 = (offset + 0x800) & 0xfffff000; in apply_r_riscv_call_rela()
[all …]
/linux/arch/riscv/include/asm/
H A Dmodule.h81 u32 hi20 = (offset + 0x800) & 0xfffff000; in emit_plt_entry() local
82 u32 lo12 = (offset - hi20); in emit_plt_entry()
84 OPC_AUIPC | (REG_T0 << 7) | hi20, in emit_plt_entry()
/linux/arch/loongarch/kernel/
H A Dmodule.c536 s32 hi20, lo12; in apply_relocate_add() local
547 hi20 = (offset + 0x800) & 0xfffff000; in apply_relocate_add()
548 v = lo12 = offset - hi20; in apply_relocate_add()