Home
last modified time | relevance | path

Searched refs:si_code (Results 1 – 25 of 116) sorted by relevance

12345

/arch/s390/kernel/
Dtraps.c45 void do_report_trap(struct pt_regs *regs, int si_signo, int si_code, char *str) in do_report_trap() argument
52 info.si_code = si_code; in do_report_trap()
72 static void do_trap(struct pt_regs *regs, int si_signo, int si_code, char *str) in do_trap() argument
77 do_report_trap(regs, si_signo, si_code, str); in do_trap()
91 info.si_code = TRAP_HWBKPT; in do_per_trap()
142 int si_code = 0; in do_fp_trap() local
147 si_code = FPE_FLTINV; in do_fp_trap()
149 si_code = FPE_FLTDIV; in do_fp_trap()
151 si_code = FPE_FLTOVF; in do_fp_trap()
153 si_code = FPE_FLTUND; in do_fp_trap()
[all …]
/arch/blackfin/kernel/
Dtraps.c30 kgdb_handle_exception(trapnr, sig, info.si_code, fp); \
116 info.si_code = TRAP_ILLTRAP; in trap_c()
126 info.si_code = SEGV_STACKFLOW; in trap_c()
134 info.si_code = TRAP_ILLTRAP; in trap_c()
155 info.si_code = ILL_ILLPARAOP; in trap_c()
162 info.si_code = TRAP_STEP; in trap_c()
172 info.si_code = TRAP_TRACEFLOW; in trap_c()
224 info.si_code = ILL_ILLOPC; in trap_c()
231 info.si_code = ILL_ILLPARAOP; in trap_c()
238 info.si_code = ILL_CPLB_VI; in trap_c()
[all …]
/arch/x86/kernel/
Dsignal_compat.c133 put_user_ex(from->si_code, &to->si_code); in __copy_siginfo_to_user32()
135 if (from->si_code < 0) { in __copy_siginfo_to_user32()
146 switch (siginfo_layout(from->si_signo, from->si_code)) { in __copy_siginfo_to_user32()
149 (from->si_code == BUS_MCEERR_AR || in __copy_siginfo_to_user32()
150 from->si_code == BUS_MCEERR_AO)) in __copy_siginfo_to_user32()
154 if (from->si_code == SEGV_BNDERR) { in __copy_siginfo_to_user32()
160 if (from->si_code == SEGV_PKUERR) in __copy_siginfo_to_user32()
217 get_user_ex(to->si_code, &from->si_code); in copy_siginfo_from_user32()
/arch/alpha/math-emu/
Dmath.c109 long si_code; in alpha_fp_emul() local
313 si_code = 0; in alpha_fp_emul()
315 if (_fex & IEEE_TRAP_ENABLE_DNO) si_code = FPE_FLTUND; in alpha_fp_emul()
316 if (_fex & IEEE_TRAP_ENABLE_INE) si_code = FPE_FLTRES; in alpha_fp_emul()
317 if (_fex & IEEE_TRAP_ENABLE_UNF) si_code = FPE_FLTUND; in alpha_fp_emul()
318 if (_fex & IEEE_TRAP_ENABLE_OVF) si_code = FPE_FLTOVF; in alpha_fp_emul()
319 if (_fex & IEEE_TRAP_ENABLE_DZE) si_code = FPE_FLTDIV; in alpha_fp_emul()
320 if (_fex & IEEE_TRAP_ENABLE_INV) si_code = FPE_FLTINV; in alpha_fp_emul()
323 return si_code; in alpha_fp_emul()
342 unsigned long insn, opcode, rc, si_code = 0; in alpha_fp_emul_imprecise() local
[all …]
/arch/arm64/kernel/
Dfpsimd.c118 unsigned int si_code = 0; in do_fpsimd_exc() local
121 si_code = FPE_FLTINV; in do_fpsimd_exc()
123 si_code = FPE_FLTDIV; in do_fpsimd_exc()
125 si_code = FPE_FLTOVF; in do_fpsimd_exc()
127 si_code = FPE_FLTUND; in do_fpsimd_exc()
129 si_code = FPE_FLTRES; in do_fpsimd_exc()
133 info.si_code = si_code; in do_fpsimd_exc()
/arch/sparc/kernel/
Dtraps_32.c109 info.si_code = ILL_ILLTRP; in do_hw_interrupt()
129 info.si_code = ILL_ILLOPC; in do_illegal_instruction()
144 info.si_code = ILL_PRVOPC; in do_priv_instruction()
170 info.si_code = BUS_ADRALN; in do_memaccess_unaligned()
310 info.si_code = FPE_FIXME;
313 info.si_code = FPE_FLTINV;
315 info.si_code = FPE_FLTOVF;
317 info.si_code = FPE_FLTUND;
319 info.si_code = FPE_FLTDIV;
321 info.si_code = FPE_FLTRES;
[all …]
/arch/hexagon/mm/
Dvm_fault.c54 int si_code = SEGV_MAPERR; in do_page_fault() local
87 si_code = SEGV_ACCERR; in do_page_fault()
144 info.si_code = BUS_ADRERR; in do_page_fault()
149 info.si_code = SEGV_ACCERR; in do_page_fault()
162 info.si_code = si_code; in do_page_fault()
/arch/ia64/kernel/
Dtraps.c186 siginfo.si_code = code; in ia64_bad_break()
353 siginfo.si_code = FPE_FIXME; /* default code */ in handle_fpu_swa()
356 siginfo.si_code = FPE_FLTINV; in handle_fpu_swa()
360 siginfo.si_code = FPE_FLTUND; in handle_fpu_swa()
362 siginfo.si_code = FPE_FLTDIV; in handle_fpu_swa()
377 siginfo.si_code = FPE_FIXME; /* default code */ in handle_fpu_swa()
380 siginfo.si_code = FPE_FLTOVF; in handle_fpu_swa()
382 siginfo.si_code = FPE_FLTUND; in handle_fpu_swa()
384 siginfo.si_code = FPE_FLTRES; in handle_fpu_swa()
425 si.si_code = ILL_ILLOPC; in ia64_illegal_op_fault()
[all …]
Dbrl_emu.c205 siginfo.si_code = ILL_BADIADDR; in ia64_emulate_brl()
214 siginfo.si_code = TRAP_BRANCH; in ia64_emulate_brl()
227 siginfo.si_code = TRAP_TRACE; in ia64_emulate_brl()
/arch/alpha/kernel/
Dtraps.c215 long si_code = FPE_FLTINV; in do_entArith() local
223 si_code = alpha_fp_emul(regs->pc - 4); in do_entArith()
225 si_code = alpha_fp_emul_imprecise(regs, write_mask); in do_entArith()
226 if (si_code == 0) in do_entArith()
233 info.si_code = si_code; in do_entArith()
275 info.si_code = TRAP_BRKPT; in do_entIF()
289 info.si_code = TRAP_FIXME; in do_entIF()
357 info.si_code = code; in do_entIF()
364 long si_code; in do_entIF() local
379 si_code = alpha_fp_emul(regs->pc - 4); in do_entIF()
[all …]
/arch/mn10300/kernel/
Dfpu.c55 info.si_code = FPE_FLTINV; in fpu_exception()
62 info.si_code = FPE_FLTDIV; in fpu_exception()
64 info.si_code = FPE_FLTOVF; in fpu_exception()
66 info.si_code = FPE_FLTUND; in fpu_exception()
68 info.si_code = FPE_FLTRES; in fpu_exception()
Dtraps.c56 u32 si_code; member
130 int signo, si_code; in die_if_no_fixup() local
138 si_code = exception_to_signal_map[code >> 3].si_code; in die_if_no_fixup()
168 si_code = TRAP_BRKPT; in die_if_no_fixup()
189 if (debugger_intercept(code, signo, si_code, regs) == 0) in die_if_no_fixup()
212 info.si_code = exception_to_signal_map[intcode >> 3].si_code; in handle_exception()
/arch/alpha/mm/
Dfault.c90 int fault, si_code = SEGV_MAPERR; in do_page_fault() local
134 si_code = SEGV_ACCERR; in do_page_fault()
226 info.si_code = BUS_ADRERR; in do_page_fault()
236 info.si_code = si_code; in do_page_fault()
/arch/frv/kernel/
Dtraps.c50 info.si_code = SEGV_ACCERR; in insn_access_error()
81 info.si_code = ILL_ILLOPC; in illegal_instruction()
85 info.si_code = ILL_PRVOPC; in illegal_instruction()
89 info.si_code = ILL_ILLTRP; in illegal_instruction()
95 info.si_code = in illegal_instruction()
324 info.si_code = SEGV_ACCERR; in atomic_operation()
345 info.si_code = FPE_MDAOVF; in media_exception()
374 info.si_code = SEGV_ACCERR; in memory_access_exception()
406 info.si_code = SEGV_ACCERR; in data_access_error()
440 info.si_code = FPE_INTDIV; in division_exception()
/arch/powerpc/platforms/cell/spufs/
Dfault.c52 info.si_code = BUS_OBJERR; in spufs_handle_event()
57 info.si_code = SEGV_ACCERR; in spufs_handle_event()
63 info.si_code = BUS_ADRALN; in spufs_handle_event()
69 info.si_code = ILL_ILLOPC; in spufs_handle_event()
/arch/tile/kernel/
Dcompat_signal.c67 err |= __put_user(from->si_code, &to->si_code); in copy_siginfo_to_user32()
69 if (from->si_code < 0) { in copy_siginfo_to_user32()
80 switch (siginfo_layout(from->si_signo, from->si_code)) { in copy_siginfo_to_user32()
117 err |= __get_user(to->si_code, &from->si_code); in copy_siginfo_from_user32()
/arch/parisc/mm/
Dfault.c365 si.si_code = SEGV_MAPERR; in do_page_fault()
372 si.si_code = SEGV_ACCERR; in do_page_fault()
381 si.si_code = (code == 18) ? BUS_ADRALN : BUS_ADRERR; in do_page_fault()
387 si.si_code = (code == 26) ? SEGV_ACCERR : SEGV_MAPERR; in do_page_fault()
397 si.si_code = BUS_MCEERR_AR; in do_page_fault()
/arch/sh/mm/
Dfault.c42 force_sig_info_fault(int si_signo, int si_code, unsigned long address, in force_sig_info_fault() argument
49 info.si_code = si_code; in force_sig_info_fault()
252 unsigned long address, int si_code) in __bad_area_nosemaphore() argument
263 force_sig_info_fault(SIGSEGV, si_code, address, tsk); in __bad_area_nosemaphore()
280 unsigned long address, int si_code) in __bad_area() argument
290 __bad_area_nosemaphore(regs, error_code, address, si_code); in __bad_area()
/arch/mips/kernel/
Dsignal32.c96 err |= __put_user(from->si_code, &to->si_code); in copy_siginfo_to_user32()
97 if (from->si_code < 0) in copy_siginfo_to_user32()
100 switch (siginfo_layout(from->si_signo, from->si_code)) { in copy_siginfo_to_user32()
/arch/um/kernel/
Dtrap.c168 si.si_code = SEGV_ACCERR; in bad_segv()
242 &si.si_code); in segv()
276 si.si_code = BUS_ADRERR; in segv()
312 clean_si.si_code = si->si_code; in relay_signal()
328 sig, si->si_code); in relay_signal()
/arch/xtensa/mm/
Dfault.c50 info.si_code = SEGV_MAPERR; in do_page_fault()
96 info.si_code = SEGV_ACCERR; in do_page_fault()
191 info.si_code = SIGBUS; in do_page_fault()
193 info.si_code = BUS_ADRERR; in do_page_fault()
/arch/powerpc/mm/
Dfault.c110 __bad_area_nosemaphore(struct pt_regs *regs, unsigned long address, int si_code) in __bad_area_nosemaphore() argument
120 _exception(SIGSEGV, regs, si_code, address); in __bad_area_nosemaphore()
130 static int __bad_area(struct pt_regs *regs, unsigned long address, int si_code) in __bad_area() argument
140 return __bad_area_nosemaphore(regs, address, si_code); in __bad_area()
165 info.si_code = BUS_ADRERR; in do_sigbus()
171 info.si_code = BUS_MCEERR_AR; in do_sigbus()
/arch/sparc/mm/
Dfault_64.c175 info.si_code = code; in do_fault_siginfo()
213 static void __kprobes do_kernel_fault(struct pt_regs *regs, int si_code, in do_kernel_fault() argument
261 do_fault_siginfo(si_code, SIGSEGV, regs, address, insn, fault_code); in do_kernel_fault()
287 int si_code, fault_code, fault; in do_sparc64_fault() local
296 si_code = SEGV_MAPERR; in do_sparc64_fault()
409 si_code = SEGV_ACCERR; in do_sparc64_fault()
512 do_kernel_fault(regs, si_code, fault_code, insn, address); in do_sparc64_fault()
/arch/m68k/kernel/
Dtraps.c1032 info.si_code = BUS_ADRALN; in trap_c()
1038 info.si_code = ILL_ILLOPC; in trap_c()
1042 info.si_code = ILL_PRVOPC; in trap_c()
1046 info.si_code = ILL_COPROC; in trap_c()
1063 info.si_code = ILL_ILLTRP; in trap_c()
1069 info.si_code = FPE_FLTINV; in trap_c()
1073 info.si_code = FPE_FLTRES; in trap_c()
1077 info.si_code = FPE_FLTDIV; in trap_c()
1081 info.si_code = FPE_FLTUND; in trap_c()
1085 info.si_code = FPE_FLTOVF; in trap_c()
[all …]
/arch/parisc/kernel/
Dsignal32.c288 err |= __get_user(to->si_code, &from->si_code); in copy_siginfo_from_user32()
290 if (to->si_code < 0) in copy_siginfo_from_user32()
293 switch (siginfo_layout(to->si_signo, to->si_code)) { in copy_siginfo_from_user32()
340 err |= __put_user(from->si_code, &to->si_code); in copy_siginfo_to_user32()
341 if (from->si_code < 0) in copy_siginfo_to_user32()
344 switch (siginfo_layout(from->si_signo, from->si_code)) { in copy_siginfo_to_user32()

12345