mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 02:19:51 +00:00
arm64: entry: cleanup el0 svc handler naming
For most of the exception entry code, <foo>_handler() is the first C function called from the entry assembly in entry-common.c, and external functions handling the bulk of the logic are called do_<foo>(). For consistency, apply this scheme to el0_svc_handler and el0_svc_compat_handler, renaming them to do_el0_svc and do_el0_svc_compat respectively. There should be no functional change as a result of this patch. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: James Morse <james.morse@arm.com> Cc: Will Deacon <will@kernel.org> Signed-off-by: Will Deacon <will@kernel.org>
This commit is contained in:
parent
2d226c1e1c
commit
7a2c094464
3 changed files with 6 additions and 6 deletions
|
@ -45,8 +45,8 @@ void do_sysinstr(unsigned int esr, struct pt_regs *regs);
|
||||||
void do_sp_pc_abort(unsigned long addr, unsigned int esr, struct pt_regs *regs);
|
void do_sp_pc_abort(unsigned long addr, unsigned int esr, struct pt_regs *regs);
|
||||||
void bad_el0_sync(struct pt_regs *regs, int reason, unsigned int esr);
|
void bad_el0_sync(struct pt_regs *regs, int reason, unsigned int esr);
|
||||||
void do_cp15instr(unsigned int esr, struct pt_regs *regs);
|
void do_cp15instr(unsigned int esr, struct pt_regs *regs);
|
||||||
void el0_svc_handler(struct pt_regs *regs);
|
void do_el0_svc(struct pt_regs *regs);
|
||||||
void el0_svc_compat_handler(struct pt_regs *regs);
|
void do_el0_svc_compat(struct pt_regs *regs);
|
||||||
void do_el0_ia_bp_hardening(unsigned long addr, unsigned int esr,
|
void do_el0_ia_bp_hardening(unsigned long addr, unsigned int esr,
|
||||||
struct pt_regs *regs);
|
struct pt_regs *regs);
|
||||||
|
|
||||||
|
|
|
@ -215,7 +215,7 @@ static void notrace el0_svc(struct pt_regs *regs)
|
||||||
if (system_uses_irq_prio_masking())
|
if (system_uses_irq_prio_masking())
|
||||||
gic_write_pmr(GIC_PRIO_IRQON | GIC_PRIO_PSR_I_SET);
|
gic_write_pmr(GIC_PRIO_IRQON | GIC_PRIO_PSR_I_SET);
|
||||||
|
|
||||||
el0_svc_handler(regs);
|
do_el0_svc(regs);
|
||||||
}
|
}
|
||||||
NOKPROBE_SYMBOL(el0_svc);
|
NOKPROBE_SYMBOL(el0_svc);
|
||||||
|
|
||||||
|
@ -281,7 +281,7 @@ static void notrace el0_svc_compat(struct pt_regs *regs)
|
||||||
if (system_uses_irq_prio_masking())
|
if (system_uses_irq_prio_masking())
|
||||||
gic_write_pmr(GIC_PRIO_IRQON | GIC_PRIO_PSR_I_SET);
|
gic_write_pmr(GIC_PRIO_IRQON | GIC_PRIO_PSR_I_SET);
|
||||||
|
|
||||||
el0_svc_compat_handler(regs);
|
do_el0_svc_compat(regs);
|
||||||
}
|
}
|
||||||
NOKPROBE_SYMBOL(el0_svc_compat);
|
NOKPROBE_SYMBOL(el0_svc_compat);
|
||||||
|
|
||||||
|
|
|
@ -154,14 +154,14 @@ static inline void sve_user_discard(void)
|
||||||
sve_user_disable();
|
sve_user_disable();
|
||||||
}
|
}
|
||||||
|
|
||||||
void el0_svc_handler(struct pt_regs *regs)
|
void do_el0_svc(struct pt_regs *regs)
|
||||||
{
|
{
|
||||||
sve_user_discard();
|
sve_user_discard();
|
||||||
el0_svc_common(regs, regs->regs[8], __NR_syscalls, sys_call_table);
|
el0_svc_common(regs, regs->regs[8], __NR_syscalls, sys_call_table);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_COMPAT
|
#ifdef CONFIG_COMPAT
|
||||||
void el0_svc_compat_handler(struct pt_regs *regs)
|
void do_el0_svc_compat(struct pt_regs *regs)
|
||||||
{
|
{
|
||||||
el0_svc_common(regs, regs->regs[7], __NR_compat_syscalls,
|
el0_svc_common(regs, regs->regs[7], __NR_compat_syscalls,
|
||||||
compat_sys_call_table);
|
compat_sys_call_table);
|
||||||
|
|
Loading…
Reference in a new issue