Commit e540e0a7 authored by James Morse's avatar James Morse Committed by Catalin Marinas

arm64: Add prototypes for functions called by entry.S

Functions that are only called by assembly don't always have a
C header file prototype.

Add the prototypes before moving the assembly callers to C.
Signed-off-by: default avatarJames Morse <james.morse@arm.com>
Acked-by: default avatarMark Rutland <mark.rutland@arm.com>
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent b6e43c0e
......@@ -9,6 +9,7 @@
#include <asm/esr.h>
#include <asm/kprobes.h>
#include <asm/ptrace.h>
#include <linux/interrupt.h>
......@@ -31,5 +32,26 @@ static inline u32 disr_to_esr(u64 disr)
}
asmlinkage void enter_from_user_mode(void);
asmlinkage void do_mem_abort(unsigned long addr, unsigned int esr,
struct pt_regs *regs);
asmlinkage void do_sp_pc_abort(unsigned long addr, unsigned int esr,
struct pt_regs *regs);
asmlinkage void do_undefinstr(struct pt_regs *regs);
asmlinkage void bad_mode(struct pt_regs *regs, int reason, unsigned int esr);
asmlinkage void do_debug_exception(unsigned long addr_if_watchpoint,
unsigned int esr, struct pt_regs *regs);
asmlinkage void do_fpsimd_acc(unsigned int esr, struct pt_regs *regs);
asmlinkage void do_sve_acc(unsigned int esr, struct pt_regs *regs);
asmlinkage void do_fpsimd_exc(unsigned int esr, struct pt_regs *regs);
asmlinkage void do_sysinstr(unsigned int esr, struct pt_regs *regs);
asmlinkage void do_sp_pc_abort(unsigned long addr, unsigned int esr,
struct pt_regs *regs);
asmlinkage void bad_el0_sync(struct pt_regs *regs, int reason,
unsigned int esr);
asmlinkage void do_cp15instr(unsigned int esr, struct pt_regs *regs);
asmlinkage void el0_svc_handler(struct pt_regs *regs);
asmlinkage void el0_svc_compat_handler(struct pt_regs *regs);
asmlinkage void do_el0_ia_bp_hardening(unsigned long addr, unsigned int esr,
struct pt_regs *regs);
#endif /* __ASM_EXCEPTION_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment