Lines Matching +full:entry +full:- +full:address

1 // SPDX-License-Identifier: GPL-2.0-only
3 * Traps/Non-MMU Exception handling for ARC
5 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
8 * -user-space unaligned access emulation
19 #include <asm/entry.h>
25 void die(const char *str, struct pt_regs *regs, unsigned long address) in die() argument
27 show_kernel_fault_diag(str, regs, address); in die()
35 * -for user faults enqueues requested signal
36 * -for kernel, chk if due to copy_(to|from)_user, otherwise die()
45 tsk->thread.fault_address = (__force unsigned int)addr; in unhandled_exception()
61 int name(unsigned long address, struct pt_regs *regs) \
64 (void __user *)address); \
68 * Entry points for exceptions NOT needing specific handling
79 * Entry Point for Misaligned Data access Exception, for emulating in software
81 int do_misaligned_access(unsigned long address, struct pt_regs *regs, in do_misaligned_access() argument
85 if (misaligned_fixup(address, regs, cregs) != 0) in do_misaligned_access()
86 return do_misaligned_error(address, regs); in do_misaligned_access()
92 * Entry point for miscll errors such as Nested Exceptions
93 * -Duplicate TLB entry is handled separately though
95 void do_machine_check_fault(unsigned long address, struct pt_regs *regs) in do_machine_check_fault() argument
97 die("Unhandled Machine Check Exception", regs, address); in do_machine_check_fault()
102 * Entry point for traps induced by ARCompact TRAP_S <n> insn
107 * -1 used for software breakpointing (gdb)
108 * -2 used by kprobes
109 * -5 __builtin_trap() generated by gcc (2018.03 onwards) for toggle such as
110 * -fno-isolate-erroneous-paths-dereference
112 void do_non_swi_trap(unsigned long address, struct pt_regs *regs) in do_non_swi_trap() argument
114 switch (regs->ecr.param) { in do_non_swi_trap()
116 trap_is_brkpt(address, regs); in do_non_swi_trap()
120 trap_is_kprobe(address, regs); in do_non_swi_trap()
129 do_trap5_error(address, regs); in do_non_swi_trap()
137 * Entry point for Instruction Error Exception
138 * -For a corner case, ARC kprobes implementation resorts to using
141 void do_insterror_or_kprobe(unsigned long address, struct pt_regs *regs) in do_insterror_or_kprobe() argument
146 rc = notify_die(DIE_IERR, "kprobe_ierr", regs, address, 0, SIGILL); in do_insterror_or_kprobe()
150 insterror_is_error(address, regs); in do_insterror_or_kprobe()