Linux Audio

Check our new training course

Loading...
v4.10.11
 
 1/*
 2 * Based on arch/arm/include/asm/exception.h
 3 *
 4 * Copyright (C) 2012 ARM Ltd.
 5 *
 6 * This program is free software; you can redistribute it and/or modify
 7 * it under the terms of the GNU General Public License version 2 as
 8 * published by the Free Software Foundation.
 9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 */
18#ifndef __ASM_EXCEPTION_H
19#define __ASM_EXCEPTION_H
20
 
 
 
21#include <linux/interrupt.h>
22
23#define __exception	__attribute__((section(".exception.text")))
24#ifdef CONFIG_FUNCTION_GRAPH_TRACER
25#define __exception_irq_entry	__irq_entry
26#else
27#define __exception_irq_entry	__exception
28#endif
29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30#endif	/* __ASM_EXCEPTION_H */
v6.9.4
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/*
 3 * Based on arch/arm/include/asm/exception.h
 4 *
 5 * Copyright (C) 2012 ARM Ltd.
 
 
 
 
 
 
 
 
 
 
 
 
 6 */
 7#ifndef __ASM_EXCEPTION_H
 8#define __ASM_EXCEPTION_H
 9
10#include <asm/esr.h>
11#include <asm/ptrace.h>
12
13#include <linux/interrupt.h>
14
 
 
15#define __exception_irq_entry	__irq_entry
 
 
 
16
17static inline unsigned long disr_to_esr(u64 disr)
18{
19	unsigned long esr = ESR_ELx_EC_SERROR << ESR_ELx_EC_SHIFT;
20
21	if ((disr & DISR_EL1_IDS) == 0)
22		esr |= (disr & DISR_EL1_ESR_MASK);
23	else
24		esr |= (disr & ESR_ELx_ISS_MASK);
25
26	return esr;
27}
28
29asmlinkage void __noreturn handle_bad_stack(struct pt_regs *regs);
30
31asmlinkage void el1t_64_sync_handler(struct pt_regs *regs);
32asmlinkage void el1t_64_irq_handler(struct pt_regs *regs);
33asmlinkage void el1t_64_fiq_handler(struct pt_regs *regs);
34asmlinkage void el1t_64_error_handler(struct pt_regs *regs);
35
36asmlinkage void el1h_64_sync_handler(struct pt_regs *regs);
37asmlinkage void el1h_64_irq_handler(struct pt_regs *regs);
38asmlinkage void el1h_64_fiq_handler(struct pt_regs *regs);
39asmlinkage void el1h_64_error_handler(struct pt_regs *regs);
40
41asmlinkage void el0t_64_sync_handler(struct pt_regs *regs);
42asmlinkage void el0t_64_irq_handler(struct pt_regs *regs);
43asmlinkage void el0t_64_fiq_handler(struct pt_regs *regs);
44asmlinkage void el0t_64_error_handler(struct pt_regs *regs);
45
46asmlinkage void el0t_32_sync_handler(struct pt_regs *regs);
47asmlinkage void el0t_32_irq_handler(struct pt_regs *regs);
48asmlinkage void el0t_32_fiq_handler(struct pt_regs *regs);
49asmlinkage void el0t_32_error_handler(struct pt_regs *regs);
50
51asmlinkage void call_on_irq_stack(struct pt_regs *regs,
52				  void (*func)(struct pt_regs *));
53asmlinkage void asm_exit_to_user_mode(struct pt_regs *regs);
54
55void do_mem_abort(unsigned long far, unsigned long esr, struct pt_regs *regs);
56void do_el0_undef(struct pt_regs *regs, unsigned long esr);
57void do_el1_undef(struct pt_regs *regs, unsigned long esr);
58void do_el0_bti(struct pt_regs *regs);
59void do_el1_bti(struct pt_regs *regs, unsigned long esr);
60void do_debug_exception(unsigned long addr_if_watchpoint, unsigned long esr,
61			struct pt_regs *regs);
62void do_fpsimd_acc(unsigned long esr, struct pt_regs *regs);
63void do_sve_acc(unsigned long esr, struct pt_regs *regs);
64void do_sme_acc(unsigned long esr, struct pt_regs *regs);
65void do_fpsimd_exc(unsigned long esr, struct pt_regs *regs);
66void do_el0_sys(unsigned long esr, struct pt_regs *regs);
67void do_sp_pc_abort(unsigned long addr, unsigned long esr, struct pt_regs *regs);
68void bad_el0_sync(struct pt_regs *regs, int reason, unsigned long esr);
69void do_el0_cp15(unsigned long esr, struct pt_regs *regs);
70int do_compat_alignment_fixup(unsigned long addr, struct pt_regs *regs);
71void do_el0_svc(struct pt_regs *regs);
72void do_el0_svc_compat(struct pt_regs *regs);
73void do_el0_fpac(struct pt_regs *regs, unsigned long esr);
74void do_el1_fpac(struct pt_regs *regs, unsigned long esr);
75void do_el0_mops(struct pt_regs *regs, unsigned long esr);
76void do_serror(struct pt_regs *regs, unsigned long esr);
77void do_signal(struct pt_regs *regs);
78
79void __noreturn panic_bad_stack(struct pt_regs *regs, unsigned long esr, unsigned long far);
80#endif	/* __ASM_EXCEPTION_H */