/arch/x86/include/asm/ |
D | signal.h | 24 unsigned long sig[_NSIG_WORDS]; member 49 #define sigaddset(set,sig) \ argument 50 (__builtin_constant_p(sig) \ 51 ? __const_sigaddset((set), (sig)) \ 52 : __gen_sigaddset((set), (sig))) 61 unsigned long sig = _sig - 1; in __const_sigaddset() local 62 set->sig[sig / _NSIG_BPW] |= 1 << (sig % _NSIG_BPW); in __const_sigaddset() 65 #define sigdelset(set, sig) \ argument 66 (__builtin_constant_p(sig) \ 67 ? __const_sigdelset((set), (sig)) \ [all …]
|
D | cpu.h | 40 unsigned int x86_family(unsigned int sig); 41 unsigned int x86_model(unsigned int sig); 42 unsigned int x86_stepping(unsigned int sig);
|
/arch/x86/lib/ |
D | cpu.c | 6 unsigned int x86_family(unsigned int sig) in x86_family() argument 10 x86 = (sig >> 8) & 0xf; in x86_family() 13 x86 += (sig >> 20) & 0xff; in x86_family() 19 unsigned int x86_model(unsigned int sig) in x86_model() argument 23 fam = x86_family(sig); in x86_model() 25 model = (sig >> 4) & 0xf; in x86_model() 28 model += ((sig >> 16) & 0xf) << 4; in x86_model() 34 unsigned int x86_stepping(unsigned int sig) in x86_stepping() argument 36 return sig & 0xf; in x86_stepping()
|
/arch/m68k/include/asm/ |
D | signal.h | 17 unsigned long sig[_NSIG_WORDS]; member 45 unsigned long sig = _sig - 1; in __const_sigismember() local 46 return 1 & (set->sig[sig / _NSIG_BPW] >> (sig % _NSIG_BPW)); in __const_sigismember() 59 #define sigismember(set,sig) \ argument 60 (__builtin_constant_p(sig) ? \ 61 __const_sigismember(set,sig) : \ 62 __gen_sigismember(set,sig))
|
/arch/um/os-Linux/ |
D | signal.c | 32 static void sig_handler_common(int sig, struct siginfo *si, mcontext_t *mc) in sig_handler_common() argument 38 if (sig == SIGSEGV) { in sig_handler_common() 45 if ((sig != SIGIO) && (sig != SIGWINCH)) in sig_handler_common() 48 (*sig_info[sig])(sig, si, &r); in sig_handler_common() 69 void sig_handler(int sig, struct siginfo *si, mcontext_t *mc) in sig_handler() argument 74 if (!enabled && (sig == SIGIO)) { in sig_handler() 81 sig_handler_common(sig, si, mc); in sig_handler() 97 void timer_alarm_handler(int sig, struct siginfo *unused_si, mcontext_t *mc) in timer_alarm_handler() argument 139 static void (*handlers[_NSIG])(int sig, struct siginfo *si, mcontext_t *mc) = { 151 static void hard_handler(int sig, siginfo_t *si, void *p) in hard_handler() argument [all …]
|
/arch/mips/sgi-ip22/ |
D | ip22-eisa.c | 54 u8 sig[4]; in decode_eisa_sig() local 59 sig[i] = inb(addr + i); in decode_eisa_sig() 61 if (!i && (sig[0] & 0x80)) in decode_eisa_sig() 65 sig_str[0] = ((sig[0] >> 2) & 0x1f) + ('A' - 1); in decode_eisa_sig() 66 sig_str[1] = (((sig[0] & 3) << 3) | (sig[1] >> 5)) + ('A' - 1); in decode_eisa_sig() 67 sig_str[2] = (sig[1] & 0x1f) + ('A' - 1); in decode_eisa_sig() 68 rev = (sig[2] << 8) | sig[3]; in decode_eisa_sig()
|
/arch/mips/kernel/ |
D | signal32.c | 38 SYSCALL_DEFINE3(32_sigaction, long, sig, const struct compat_sigaction __user *, act, 54 err |= __get_user(mask, &act->sa_mask.sig[0]); 61 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); 69 err |= __put_user(old_ka.sa.sa_mask.sig[0], oact->sa_mask.sig); 70 err |= __put_user(0, &oact->sa_mask.sig[1]); 71 err |= __put_user(0, &oact->sa_mask.sig[2]); 72 err |= __put_user(0, &oact->sa_mask.sig[3]);
|
D | signal_o32.c | 140 regs->regs[ 4] = ksig->sig; in setup_frame_32() 159 int sig; in sys32_rt_sigreturn() local 170 sig = restore_sigcontext32(regs, &frame->rs_uc.uc_mcontext); in sys32_rt_sigreturn() 171 if (sig < 0) in sys32_rt_sigreturn() 173 else if (sig) in sys32_rt_sigreturn() 174 force_sig(sig); in sys32_rt_sigreturn() 226 regs->regs[ 4] = ksig->sig; in setup_rt_frame_32() 261 int sig; in sys32_sigreturn() local 272 sig = restore_sigcontext32(regs, &frame->sf_sc); in sys32_sigreturn() 273 if (sig < 0) in sys32_sigreturn() [all …]
|
D | signal_n32.c | 59 int sig; in sysn32_rt_sigreturn() local 70 sig = restore_sigcontext(regs, &frame->rs_uc.uc_mcontext); in sysn32_rt_sigreturn() 71 if (sig < 0) in sysn32_rt_sigreturn() 73 else if (sig) in sysn32_rt_sigreturn() 74 force_sig(sig); in sysn32_rt_sigreturn() 126 regs->regs[ 4] = ksig->sig; in setup_rt_frame_n32()
|
D | signal.c | 385 int err, sig = 0, tmp __maybe_unused; in protected_restore_fp_context() local 401 err = sig = fpcsr_pending(csr); in protected_restore_fp_context() 436 return err ?: sig; in protected_restore_fp_context() 499 int err, sig = 0; in fpcsr_pending() local 511 sig = SIGFPE; in fpcsr_pending() 513 return err ?: sig; in fpcsr_pending() 583 SYSCALL_DEFINE3(sigaction, int, sig, const struct sigaction __user *, act, in SYSCALL_DEFINE3() argument 597 err |= __get_user(mask, &act->sa_mask.sig[0]); in SYSCALL_DEFINE3() 604 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in SYSCALL_DEFINE3() 611 err |= __put_user(old_ka.sa.sa_mask.sig[0], oact->sa_mask.sig); in SYSCALL_DEFINE3() [all …]
|
/arch/ia64/kernel/ |
D | traps.c | 103 int sig, code; in ia64_bad_break() local 112 sig = SIGILL; code = ILL_ILLOPC; in ia64_bad_break() 116 sig = SIGFPE; code = FPE_INTDIV; in ia64_bad_break() 120 sig = SIGFPE; code = FPE_INTOVF; in ia64_bad_break() 124 sig = SIGFPE; code = FPE_FLTSUB; in ia64_bad_break() 128 sig = SIGSEGV; code = SEGV_MAPERR; in ia64_bad_break() 132 sig = SIGSEGV; code = BUS_ADRALN; in ia64_bad_break() 136 sig = SIGFPE; code = __FPE_DECOVF; in ia64_bad_break() 140 sig = SIGFPE; code = __FPE_DECDIV; in ia64_bad_break() 144 sig = SIGFPE; code = __FPE_DECERR; in ia64_bad_break() [all …]
|
D | signal.c | 36 # define PUT_SIGSET(k,u) __copy_to_user((u)->sig, (k)->sig, sizeof(sigset_t)) 37 # define GET_SIGSET(k,u) __copy_from_user((k)->sig, (u)->sig, sizeof(sigset_t)) 39 # define PUT_SIGSET(k,u) __put_user((k)->sig[0], &(u)->sig[0]) 40 # define GET_SIGSET(k,u) __get_user((k)->sig[0], &(u)->sig[0]) 260 force_sigsegv(ksig->sig); in setup_frame() 268 force_sigsegv(ksig->sig); in setup_frame() 272 err = __put_user(ksig->sig, &frame->arg0); in setup_frame() 285 force_sigsegv(ksig->sig); in setup_frame() 312 current->comm, current->pid, ksig->sig, scr->pt.r12, frame->sc.sc_ip, frame->handler); in setup_frame() 361 if (ksig.sig <= 0) in ia64_do_signal()
|
/arch/arm/mm/ |
D | fault.c | 135 __do_user_fault(unsigned long addr, unsigned int fsr, unsigned int sig, in __do_user_fault() argument 144 if (((user_debug & UDBG_SEGV) && (sig == SIGSEGV)) || in __do_user_fault() 145 ((user_debug & UDBG_BUS) && (sig == SIGBUS))) { in __do_user_fault() 148 tsk->comm, sig, addr, fsr); in __do_user_fault() 154 if ((sig == SIGSEGV) && ((addr & PAGE_MASK) == 0xffff0000)) in __do_user_fault() 163 force_sig_fault(sig, code, (void __user *)addr); in __do_user_fault() 242 int sig, code; in do_page_fault() local 360 sig = SIGBUS; in do_page_fault() 367 sig = SIGSEGV; in do_page_fault() 372 __do_user_fault(addr, fsr, sig, code, regs); in do_page_fault() [all …]
|
/arch/um/include/shared/ |
D | kern_util.h | 28 extern void relay_signal(int sig, struct siginfo *si, struct uml_pt_regs *regs); 40 extern void timer_handler(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs); 64 extern void segv_handler(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs); 65 extern void bus_handler(int sig, struct siginfo *si, struct uml_pt_regs *regs); 66 extern void winch(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs);
|
/arch/x86/kernel/cpu/microcode/ |
D | intel.c | 72 if (cpu_signatures_match(csig, cpf, mc_hdr->sig, mc_hdr->pf)) in find_matching_signature() 83 if (cpu_signatures_match(csig, cpf, ext_sig->sig, ext_sig->pf)) in find_matching_signature() 125 unsigned int sig, pf; in save_microcode_patch() local 131 sig = mc_saved_hdr->sig; in save_microcode_patch() 134 if (find_matching_signature(data, sig, pf)) { in save_microcode_patch() 166 if (!find_matching_signature(p->data, uci->cpu_sig.sig, uci->cpu_sig.pf)) in save_microcode_patch() 267 sum = (mc_header->sig + mc_header->pf + mc_header->cksum) - in microcode_sanity_check() 268 (ext_sig->sig + ext_sig->pf + ext_sig->cksum); in microcode_sanity_check() 303 if (!find_matching_signature(data, uci->cpu_sig.sig, in scan_microcode() 317 uci->cpu_sig.sig, in scan_microcode() [all …]
|
/arch/csky/kernel/ |
D | traps.c | 115 int sig; in trap_c() local 125 sig = SIGFPE; in trap_c() 130 sig = SIGTRAP; in trap_c() 139 sig = SIGILL; in trap_c() 148 sig = SIGTRAP; in trap_c() 170 sig = SIGSEGV; in trap_c() 176 send_sig(sig, current, 0); in trap_c()
|
/arch/um/kernel/ |
D | trap.c | 191 void segv_handler(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs) in segv_handler() argument 284 void relay_signal(int sig, struct siginfo *si, struct uml_pt_regs *regs) in relay_signal() argument 288 if (sig == SIGBUS) in relay_signal() 291 panic("Kernel mode signal %d", sig); in relay_signal() 294 arch_examine_signal(sig, regs); in relay_signal() 301 if ((err == 0) && (siginfo_layout(sig, code) == SIL_FAULT)) { in relay_signal() 304 force_sig_fault(sig, code, (void __user *)FAULT_ADDRESS(*fi)); in relay_signal() 307 sig, code, err); in relay_signal() 308 force_sig(sig); in relay_signal() 312 void bus_handler(int sig, struct siginfo *si, struct uml_pt_regs *regs) in bus_handler() argument [all …]
|
/arch/x86/um/ |
D | signal.c | 341 int sig; member 351 int sig; member 365 int err = 0, sig = ksig->sig; in setup_signal_stack_sc() local 378 err |= __put_user(sig, &frame->sig); in setup_signal_stack_sc() 379 err |= copy_sc_to_user(&frame->sc, &frame->fpstate, regs, mask->sig[0]); in setup_signal_stack_sc() 381 err |= __copy_to_user(&frame->extramask, &mask->sig[1], in setup_signal_stack_sc() 400 PT_REGS_AX(regs) = (unsigned long) sig; in setup_signal_stack_sc() 411 int err = 0, sig = ksig->sig; in setup_signal_stack_si() local 423 err |= __put_user(sig, &frame->sig); in setup_signal_stack_si() 446 PT_REGS_AX(regs) = (unsigned long) sig; in setup_signal_stack_si() [all …]
|
D | bugs_32.c | 16 static void cmov_sigill_test_handler(int sig) in cmov_sigill_test_handler() argument 44 void arch_examine_signal(int sig, struct uml_pt_regs *regs) in arch_examine_signal() argument 52 if ((sig != SIGILL) || (get_current_pid() != 1)) in arch_examine_signal()
|
/arch/unicore32/mm/ |
D | fault.c | 117 unsigned int sig, int code, struct pt_regs *regs) in __do_user_fault() argument 124 force_sig_fault(sig, code, (void __user *)addr); in __do_user_fault() 203 int sig, code; in do_pf() local 300 sig = SIGBUS; in do_pf() 307 sig = SIGSEGV; in do_pf() 311 __do_user_fault(addr, fsr, sig, code, regs); in do_pf() 399 int sig; member 442 int sig, int code, const char *name) in hook_fault_code() argument 448 fsr_info[nr].sig = sig; in hook_fault_code() 467 uc32_notify_die("", regs, inf->sig, inf->code, (void __user *)addr, in do_DataAbort() [all …]
|
/arch/ia64/lib/ |
D | idiv64.S | 44 setf.sig f8 = in0 45 setf.sig f9 = in1 69 setf.sig f8 = in0 // f8 = a 70 setf.sig f9 = in1 // f9 = -b 80 getf.sig r8 = f11 // transfer result to result register
|
D | idiv32.S | 50 setf.sig f8 = in0 51 setf.sig f9 = in1 67 setf.sig f9 = in1 // f9 = -b 73 setf.sig f7 = in0 83 getf.sig r8 = f6 // transfer result to result register
|
/arch/arm64/kernel/ |
D | signal32.c | 55 cset.sig[0] = set->sig[0] & 0xffffffffull; in put_sigset_t() 56 cset.sig[1] = set->sig[0] >> 32; in put_sigset_t() 69 set->sig[0] = s32.sig[0] | (((long)s32.sig[1]) << 32); in get_sigset_t() 284 if (compat_restore_sigframe(regs, &frame->sig)) in COMPAT_SYSCALL_DEFINE0() 287 if (compat_restore_altstack(&frame->sig.uc.uc_stack)) in COMPAT_SYSCALL_DEFINE0() 416 __put_user_error(set->sig[0], &sf->uc.uc_mcontext.oldmask, err); in compat_setup_sigframe() 445 __put_user_error(0, &frame->sig.uc.uc_flags, err); in compat_setup_rt_frame() 446 __put_user_error(0, &frame->sig.uc.uc_link, err); in compat_setup_rt_frame() 448 err |= __compat_save_altstack(&frame->sig.uc.uc_stack, regs->compat_sp); in compat_setup_rt_frame() 450 err |= compat_setup_sigframe(&frame->sig, regs, set); in compat_setup_rt_frame() [all …]
|
/arch/x86/ia32/ |
D | ia32_signal.c | 130 if (__get_user(set.sig[0], &frame->sc.oldmask) in COMPAT_SYSCALL_DEFINE0() 132 && __copy_from_user((((char *) &set.sig) + 4), in COMPAT_SYSCALL_DEFINE0() 252 int ia32_setup_frame(int sig, struct ksignal *ksig, in ia32_setup_frame() argument 276 if (__put_user(sig, &frame->sig)) in ia32_setup_frame() 279 if (ia32_setup_sigcontext(&frame->sc, fpstate, regs, set->sig[0])) in ia32_setup_frame() 283 if (__copy_to_user(frame->extramask, &set->sig[1], in ia32_setup_frame() 317 regs->ax = sig; in ia32_setup_frame() 330 int ia32_setup_rt_frame(int sig, struct ksignal *ksig, in ia32_setup_rt_frame() argument 357 put_user_ex(sig, &frame->sig); in ia32_setup_rt_frame() 385 regs, set->sig[0]); in ia32_setup_rt_frame() [all …]
|
/arch/csky/abiv2/ |
D | fpu.c | 94 int sig, code; in fpu_fpe() local 99 sig = SIGFPE; in fpu_fpe() 103 sig = SIGILL; in fpu_fpe() 106 sig = SIGILL; in fpu_fpe() 109 sig = SIGFPE; in fpu_fpe() 122 force_sig_fault(sig, code, (void __user *)regs->pc); in fpu_fpe()
|