mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
riscv: extable: use ex
for exception_table_entry
The var name "fixup" is a bit confusing, since this is a exception_table_entry. Use "ex" instead to refer to an entire entry. In subsequent patches we'll use `fixup` to refer to the fixup field specifically. Signed-off-by: Jisheng Zhang <jszhang@kernel.org> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
This commit is contained in:
parent
ef127bca11
commit
4c2e7ce8b9
1 changed files with 5 additions and 5 deletions
|
@ -13,15 +13,15 @@
|
||||||
|
|
||||||
bool fixup_exception(struct pt_regs *regs)
|
bool fixup_exception(struct pt_regs *regs)
|
||||||
{
|
{
|
||||||
const struct exception_table_entry *fixup;
|
const struct exception_table_entry *ex;
|
||||||
|
|
||||||
fixup = search_exception_tables(regs->epc);
|
ex = search_exception_tables(regs->epc);
|
||||||
if (!fixup)
|
if (!ex)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (regs->epc >= BPF_JIT_REGION_START && regs->epc < BPF_JIT_REGION_END)
|
if (regs->epc >= BPF_JIT_REGION_START && regs->epc < BPF_JIT_REGION_END)
|
||||||
return rv_bpf_fixup_exception(fixup, regs);
|
return rv_bpf_fixup_exception(ex, regs);
|
||||||
|
|
||||||
regs->epc = (unsigned long)&fixup->fixup + fixup->fixup;
|
regs->epc = (unsigned long)&ex->fixup + ex->fixup;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue