|
19 | 19 | #define __exception_irq_entry __kprobes |
20 | 20 | #endif |
21 | 21 |
|
22 | | -static inline u32 disr_to_esr(u64 disr) |
| 22 | +static inline unsigned long disr_to_esr(u64 disr) |
23 | 23 | { |
24 | | - unsigned int esr = ESR_ELx_EC_SERROR << ESR_ELx_EC_SHIFT; |
| 24 | + unsigned long esr = ESR_ELx_EC_SERROR << ESR_ELx_EC_SHIFT; |
25 | 25 |
|
26 | 26 | if ((disr & DISR_EL1_IDS) == 0) |
27 | 27 | esr |= (disr & DISR_EL1_ESR_MASK); |
@@ -57,24 +57,24 @@ asmlinkage void call_on_irq_stack(struct pt_regs *regs, |
57 | 57 | void (*func)(struct pt_regs *)); |
58 | 58 | asmlinkage void asm_exit_to_user_mode(struct pt_regs *regs); |
59 | 59 |
|
60 | | -void do_mem_abort(unsigned long far, unsigned int esr, struct pt_regs *regs); |
| 60 | +void do_mem_abort(unsigned long far, unsigned long esr, struct pt_regs *regs); |
61 | 61 | void do_undefinstr(struct pt_regs *regs); |
62 | 62 | void do_bti(struct pt_regs *regs); |
63 | | -void do_debug_exception(unsigned long addr_if_watchpoint, unsigned int esr, |
| 63 | +void do_debug_exception(unsigned long addr_if_watchpoint, unsigned long esr, |
64 | 64 | struct pt_regs *regs); |
65 | | -void do_fpsimd_acc(unsigned int esr, struct pt_regs *regs); |
66 | | -void do_sve_acc(unsigned int esr, struct pt_regs *regs); |
67 | | -void do_sme_acc(unsigned int esr, struct pt_regs *regs); |
68 | | -void do_fpsimd_exc(unsigned int esr, struct pt_regs *regs); |
69 | | -void do_sysinstr(unsigned int esr, struct pt_regs *regs); |
70 | | -void do_sp_pc_abort(unsigned long addr, unsigned int esr, struct pt_regs *regs); |
71 | | -void bad_el0_sync(struct pt_regs *regs, int reason, unsigned int esr); |
72 | | -void do_cp15instr(unsigned int esr, struct pt_regs *regs); |
| 65 | +void do_fpsimd_acc(unsigned long esr, struct pt_regs *regs); |
| 66 | +void do_sve_acc(unsigned long esr, struct pt_regs *regs); |
| 67 | +void do_sme_acc(unsigned long esr, struct pt_regs *regs); |
| 68 | +void do_fpsimd_exc(unsigned long esr, struct pt_regs *regs); |
| 69 | +void do_sysinstr(unsigned long esr, struct pt_regs *regs); |
| 70 | +void do_sp_pc_abort(unsigned long addr, unsigned long esr, struct pt_regs *regs); |
| 71 | +void bad_el0_sync(struct pt_regs *regs, int reason, unsigned long esr); |
| 72 | +void do_cp15instr(unsigned long esr, struct pt_regs *regs); |
73 | 73 | void do_el0_svc(struct pt_regs *regs); |
74 | 74 | void do_el0_svc_compat(struct pt_regs *regs); |
75 | | -void do_ptrauth_fault(struct pt_regs *regs, unsigned int esr); |
76 | | -void do_serror(struct pt_regs *regs, unsigned int esr); |
| 75 | +void do_ptrauth_fault(struct pt_regs *regs, unsigned long esr); |
| 76 | +void do_serror(struct pt_regs *regs, unsigned long esr); |
77 | 77 | void do_notify_resume(struct pt_regs *regs, unsigned long thread_flags); |
78 | 78 |
|
79 | | -void panic_bad_stack(struct pt_regs *regs, unsigned int esr, unsigned long far); |
| 79 | +void panic_bad_stack(struct pt_regs *regs, unsigned long esr, unsigned long far); |
80 | 80 | #endif /* __ASM_EXCEPTION_H */ |
0 commit comments