/openbmc/qemu/linux-user/ppc/ |
H A D | cpu_loop.c | 71 int trapnr, si_signo, si_code; in cpu_loop() local 113 si_code = TARGET_FPE_FLTOVF; in cpu_loop() 116 si_code = TARGET_FPE_FLTUND; in cpu_loop() 120 si_code = TARGET_FPE_FLTDIV; in cpu_loop() 123 si_code = TARGET_FPE_FLTRES; in cpu_loop() 126 si_code = TARGET_FPE_FLTINV; in cpu_loop() 135 si_code = TARGET_FPE_FLTSUB; in cpu_loop() 140 si_code = 0; in cpu_loop() 148 si_code = TARGET_ILL_ILLOPC; in cpu_loop() 151 si_code = TARGET_ILL_ILLOPN; in cpu_loop() [all …]
|
/openbmc/qemu/linux-user/microblaze/ |
H A D | cpu_loop.c | 28 int trapnr, ret, si_code, sig; in cpu_loop() local 80 si_code = TARGET_FPE_INTDIV; in cpu_loop() 89 si_code = env->fsr; in cpu_loop() 90 if (si_code & FSR_IO) { in cpu_loop() 91 si_code = TARGET_FPE_FLTINV; in cpu_loop() 92 } else if (si_code & FSR_OF) { in cpu_loop() 93 si_code = TARGET_FPE_FLTOVF; in cpu_loop() 94 } else if (si_code & FSR_UF) { in cpu_loop() 95 si_code = TARGET_FPE_FLTUND; in cpu_loop() 96 } else if (si_code & FSR_DZ) { in cpu_loop() [all …]
|
/openbmc/linux/arch/s390/kernel/ |
H A D | traps.c | 51 void do_report_trap(struct pt_regs *regs, int si_signo, int si_code, char *str) in do_report_trap() argument 54 force_sig_fault(si_signo, si_code, get_trap_ip(regs)); in do_report_trap() 62 static void do_trap(struct pt_regs *regs, int si_signo, int si_code, char *str) in do_trap() argument 67 do_report_trap(regs, si_signo, si_code, str); in do_trap() 126 int si_code = 0; in do_fp_trap() local 131 si_code = FPE_FLTINV; in do_fp_trap() 133 si_code = FPE_FLTDIV; in do_fp_trap() 135 si_code = FPE_FLTOVF; in do_fp_trap() 137 si_code = FPE_FLTUND; in do_fp_trap() 139 si_code = FPE_FLTRES; in do_fp_trap() [all …]
|
/openbmc/linux/tools/testing/selftests/powerpc/mm/ |
H A D | segv_errors.c | 23 static int si_code; variable 31 si_code = info->si_code; in segv_handler() 49 si_code = 0; in test_segv_errors() 60 FAIL_IF(si_code != SEGV_ACCERR); in test_segv_errors() 63 si_code = 0; in test_segv_errors() 70 FAIL_IF(si_code != SEGV_ACCERR); in test_segv_errors()
|
/openbmc/qemu/linux-user/alpha/ |
H A D | cpu_loop.c | 29 int trapnr, si_code; in cpu_loop() local 115 si_code = TARGET_FPE_INTOVF; in cpu_loop() 118 si_code = TARGET_FPE_INTDIV; in cpu_loop() 121 si_code = TARGET_FPE_FLTOVF; in cpu_loop() 124 si_code = TARGET_FPE_FLTUND; in cpu_loop() 127 si_code = TARGET_FPE_FLTINV; in cpu_loop() 130 si_code = TARGET_FPE_FLTRES; in cpu_loop() 133 si_code = TARGET_FPE_FLTUNK; in cpu_loop() 138 force_sig_fault(TARGET_SIGFPE, si_code, env->pc); in cpu_loop()
|
/openbmc/qemu/linux-user/loongarch64/ |
H A D | cpu_loop.c | 17 int trapnr, si_code; in cpu_loop() local 54 si_code = TARGET_FPE_FLTUNK; in cpu_loop() 56 si_code = TARGET_FPE_FLTINV; in cpu_loop() 58 si_code = TARGET_FPE_FLTDIV; in cpu_loop() 60 si_code = TARGET_FPE_FLTOVF; in cpu_loop() 62 si_code = TARGET_FPE_FLTUND; in cpu_loop() 64 si_code = TARGET_FPE_FLTRES; in cpu_loop() 66 force_sig_fault(TARGET_SIGFPE, si_code, env->pc); in cpu_loop()
|
/openbmc/linux/arch/ia64/kernel/ |
H A D | traps.c | 339 int si_code; in handle_fpu_swa() local 344 si_code = FPE_FLTUNK; /* default code */ in handle_fpu_swa() 346 si_code = FPE_FLTINV; in handle_fpu_swa() 350 si_code = FPE_FLTUND; in handle_fpu_swa() 352 si_code = FPE_FLTDIV; in handle_fpu_swa() 354 force_sig_fault(SIGFPE, si_code, in handle_fpu_swa() 364 int si_code; in handle_fpu_swa() local 366 si_code = FPE_FLTUNK; /* default code */ in handle_fpu_swa() 368 si_code = FPE_FLTOVF; in handle_fpu_swa() 370 si_code = FPE_FLTUND; in handle_fpu_swa() [all …]
|
/openbmc/linux/arch/loongarch/mm/ |
H A D | fault.c | 74 unsigned long write, unsigned long address, int si_code) in do_sigbus() argument 92 unsigned long write, unsigned long address, int si_code) in do_sigsegv() argument 126 force_sig_fault(SIGSEGV, si_code, (void __user *)address); in do_sigsegv() 137 int si_code = SEGV_MAPERR; in __do_page_fault() local 160 do_sigsegv(regs, write, address, si_code); in __do_page_fault() 169 do_sigsegv(regs, write, address, si_code); in __do_page_fault() 190 do_sigsegv(regs, write, address, si_code); in __do_page_fault() 198 si_code = SEGV_ACCERR; in __do_page_fault() 244 do_sigsegv(regs, write, address, si_code); in __do_page_fault() 247 do_sigbus(regs, write, address, si_code); in __do_page_fault()
|
/openbmc/linux/arch/alpha/math-emu/ |
H A D | math.c | 112 long si_code; in alpha_fp_emul() local 316 si_code = 0; in alpha_fp_emul() 318 if (_fex & IEEE_TRAP_ENABLE_DNO) si_code = FPE_FLTUND; in alpha_fp_emul() 319 if (_fex & IEEE_TRAP_ENABLE_INE) si_code = FPE_FLTRES; in alpha_fp_emul() 320 if (_fex & IEEE_TRAP_ENABLE_UNF) si_code = FPE_FLTUND; in alpha_fp_emul() 321 if (_fex & IEEE_TRAP_ENABLE_OVF) si_code = FPE_FLTOVF; in alpha_fp_emul() 322 if (_fex & IEEE_TRAP_ENABLE_DZE) si_code = FPE_FLTDIV; in alpha_fp_emul() 323 if (_fex & IEEE_TRAP_ENABLE_INV) si_code = FPE_FLTINV; in alpha_fp_emul() 326 return si_code; in alpha_fp_emul() 345 unsigned long insn, opcode, rc, si_code = 0; in alpha_fp_emul_imprecise() local [all …]
|
/openbmc/linux/tools/testing/selftests/ptrace/ |
H A D | peeksiginfo.c | 110 int si_code; in check_direct_path() local 114 si_code = TEST_SICODE_SHARE; in check_direct_path() 117 si_code = TEST_SICODE_PRIV; in check_direct_path() 132 if (siginfo[j].si_code == si_code && in check_direct_path() 137 shared, i, siginfo[j].si_code, siginfo[j].si_int); in check_direct_path() 179 siginfo.si_code = TEST_SICODE_SHARE; in main() 183 siginfo.si_code = TEST_SICODE_PRIV; in main()
|
/openbmc/linux/arch/hexagon/mm/ |
H A D | vm_fault.c | 41 int si_code = SEGV_MAPERR; in do_page_fault() local 65 si_code = SEGV_ACCERR; in do_page_fault() 122 si_code = BUS_ADRERR; in do_page_fault() 127 si_code = SEGV_ACCERR; in do_page_fault() 129 force_sig_fault(si_signo, si_code, (void __user *)address); in do_page_fault() 137 force_sig_fault(SIGSEGV, si_code, (void __user *)address); in do_page_fault()
|
/openbmc/qemu/bsd-user/aarch64/ |
H A D | target_arch_cpu.h | 49 int trapnr, ec, fsc, si_code, si_signo; in target_cpu_loop() local 122 si_code = TARGET_SEGV_MAPERR; in target_cpu_loop() 127 si_code = TARGET_SEGV_ACCERR; in target_cpu_loop() 131 si_code = /* TARGET_SEGV_MTESERR; */ TARGET_SEGV_ACCERR; in target_cpu_loop() 135 si_code = TARGET_BUS_ADRALN; in target_cpu_loop() 140 force_sig_fault(si_signo, si_code, env->exception.vaddress); in target_cpu_loop()
|
/openbmc/qemu/linux-user/aarch64/ |
H A D | cpu_loop.c | 82 int trapnr, ec, fsc, si_code, si_signo; in cpu_loop() local 127 si_code = TARGET_SEGV_MAPERR; in cpu_loop() 132 si_code = TARGET_SEGV_ACCERR; in cpu_loop() 136 si_code = TARGET_SEGV_MTESERR; in cpu_loop() 140 si_code = TARGET_BUS_ADRALN; in cpu_loop() 148 si_code = TARGET_BUS_ADRALN; in cpu_loop() 153 force_sig_fault(si_signo, si_code, env->exception.vaddress); in cpu_loop()
|
/openbmc/qemu/linux-user/ |
H A D | signal.c | 340 int si_code = info->si_code; in host_to_target_siginfo_noswap() local 344 tinfo->si_code = info->si_code; in host_to_target_siginfo_noswap() 369 switch (si_code) { in host_to_target_siginfo_noswap() 386 if (si_code == CLD_EXITED) in host_to_target_siginfo_noswap() 414 tinfo->si_code = deposit32(si_code, 16, 16, si_type); in host_to_target_siginfo_noswap() 420 int si_type = extract32(info->si_code, 16, 16); in tswap_siginfo() 421 int si_code = sextract32(info->si_code, 0, 16); in tswap_siginfo() local 425 __put_user(si_code, &tinfo->si_code); in tswap_siginfo() 493 __get_user(info->si_code, &tinfo->si_code); in target_to_host_siginfo() 702 info.si_code = TARGET_SI_KERNEL; in force_sig() [all …]
|
/openbmc/qemu/bsd-user/ |
H A D | signal.c | 167 int si_code = info->si_code; in host_to_target_siginfo_noswap() local 188 tinfo->si_code = info->si_code; in host_to_target_siginfo_noswap() 201 switch (si_code) { in host_to_target_siginfo_noswap() 261 tinfo->si_code = deposit32(si_code, 24, 8, si_type); in host_to_target_siginfo_noswap() 266 int si_type = extract32(info->si_code, 24, 8); in tswap_siginfo() 267 int si_code = sextract32(info->si_code, 0, 24); in tswap_siginfo() local 271 __put_user(si_code, &tinfo->si_code); /* Zero out si_type, it's internal */ in tswap_siginfo() 433 info->si_code = deposit32(info->si_code, 24, 8, si_type); in queue_signal() 475 info.si_code = code; in force_sig_fault() 495 if ((host_sig == SIGSEGV || host_sig == SIGBUS) && info->si_code > 0) { in host_signal_handler() [all …]
|
/openbmc/linux/arch/alpha/kernel/ |
H A D | traps.c | 213 long si_code = FPE_FLTINV; in do_entArith() local 220 si_code = alpha_fp_emul(regs->pc - 4); in do_entArith() 222 si_code = alpha_fp_emul_imprecise(regs, write_mask); in do_entArith() 223 if (si_code == 0) in do_entArith() 228 send_sig_fault_trapno(SIGFPE, si_code, (void __user *) regs->pc, 0, current); in do_entArith() 356 long si_code; in do_entIF() local 371 si_code = alpha_fp_emul(regs->pc - 4); in do_entIF() 372 if (si_code == 0) in do_entIF() 374 if (si_code > 0) { in do_entIF() 375 send_sig_fault_trapno(SIGFPE, si_code, in do_entIF() [all …]
|
/openbmc/qemu/linux-user/mips/ |
H A D | cpu_loop.c | 66 int trapnr, si_code; in cpu_loop() local 169 si_code = TARGET_FPE_FLTUNK; in cpu_loop() 171 si_code = TARGET_FPE_FLTINV; in cpu_loop() 173 si_code = TARGET_FPE_FLTDIV; in cpu_loop() 175 si_code = TARGET_FPE_FLTOVF; in cpu_loop() 177 si_code = TARGET_FPE_FLTUND; in cpu_loop() 179 si_code = TARGET_FPE_FLTRES; in cpu_loop() 181 force_sig_fault(TARGET_SIGFPE, si_code, env->active_tc.PC); in cpu_loop()
|
/openbmc/linux/kernel/ |
H A D | signal.c | 503 if (likely(q->info.si_code != SI_TIMER)) { in __flush_itimer_signals() 601 (info->si_code == SI_TIMER) && in collect_signal() 614 info->si_code = SI_USER; in collect_signal() 734 if ((q->info.si_code > SI_USER) && in dequeue_synchronous_signal() 1126 override_rlimit = (is_si_special(info) || info->si_code >= 0); in __send_signal_locked() 1139 q->info.si_code = SI_USER; in __send_signal_locked() 1152 q->info.si_code = SI_KERNEL; in __send_signal_locked() 1161 sig >= SIGRTMIN && info->si_code != SI_USER) { in __send_signal_locked() 1205 switch (siginfo_layout(info->si_signo, info->si_code)) { in has_si_pid_and_uid() 1251 force = (info->si_code == SI_KERNEL); in send_signal_locked() [all …]
|
/openbmc/linux/tools/testing/selftests/syscall_user_dispatch/ |
H A D | sud_test.c | 148 int si_code; variable 153 si_code = info->si_code; in handle_sigsys() 185 si_code = 0; in TEST() 224 ASSERT_EQ(SYS_USER_DISPATCH, si_code) { in TEST() 241 si_code = 0; in TEST_SIGNAL()
|
/openbmc/linux/tools/testing/selftests/pidfd/ |
H A D | pidfd_wait.c | 84 ASSERT_EQ(info.si_code, CLD_EXITED); in TEST() 122 ASSERT_EQ(info.si_code, CLD_STOPPED); in TEST() 131 ASSERT_EQ(info.si_code, CLD_CONTINUED); in TEST() 136 ASSERT_EQ(info.si_code, CLD_STOPPED); in TEST() 143 ASSERT_EQ(info.si_code, CLD_KILLED); in TEST() 220 ASSERT_EQ(info.si_code, CLD_STOPPED); in TEST() 227 ASSERT_EQ(info.si_code, CLD_EXITED); in TEST()
|
/openbmc/qemu/bsd-user/arm/ |
H A D | target_arch_cpu.h | 42 int trapnr, si_signo, si_code; in target_cpu_loop() local 160 si_code = TARGET_BUS_ADRALN; in target_cpu_loop() 169 si_code = TARGET_SEGV_ACCERR; in target_cpu_loop() 174 si_code = TARGET_SEGV_MAPERR; in target_cpu_loop() 179 force_sig_fault(si_signo, si_code, env->exception.vaddress); in target_cpu_loop()
|
/openbmc/linux/arch/m68k/kernel/ |
H A D | traps.c | 1005 int sig, si_code; in trap_c() local 1027 si_code = BUS_ADRALN; in trap_c() 1033 si_code = ILL_ILLOPC; in trap_c() 1037 si_code = ILL_PRVOPC; in trap_c() 1041 si_code = ILL_COPROC; in trap_c() 1058 si_code = ILL_ILLTRP; in trap_c() 1064 si_code = FPE_FLTINV; in trap_c() 1068 si_code = FPE_FLTRES; in trap_c() 1072 si_code = FPE_FLTDIV; in trap_c() 1076 si_code = FPE_FLTUND; in trap_c() [all …]
|
/openbmc/linux/arch/m68k/mm/ |
H A D | fault.c | 24 int signo, si_code; in send_fault_sig() local 28 si_code = current->thread.code; in send_fault_sig() 30 pr_debug("send_fault_sig: %p,%d,%d\n", addr, signo, si_code); in send_fault_sig() 33 force_sig_fault(signo, si_code, addr); in send_fault_sig()
|
/openbmc/linux/arch/arc/mm/ |
H A D | fault.c | 78 int sig, si_code = SEGV_MAPERR; in do_page_fault() local 131 si_code = SEGV_ACCERR; in do_page_fault() 178 si_code = BUS_ADRERR; in do_page_fault() 185 force_sig_fault(sig, si_code, (void __user *)address); in do_page_fault()
|
/openbmc/linux/arch/parisc/mm/ |
H A D | fault.c | 367 int signo, si_code; in do_page_fault() local 375 si_code = SEGV_MAPERR; in do_page_fault() 382 si_code = SEGV_ACCERR; in do_page_fault() 391 si_code = (code == 18) ? BUS_ADRALN : BUS_ADRERR; in do_page_fault() 397 si_code = (code == 26) ? SEGV_ACCERR : SEGV_MAPERR; in do_page_fault() 423 force_sig_fault(signo, si_code, (void __user *) address); in do_page_fault()
|