/arch/x86/include/asm/ |
D | signal.h | 24 unsigned long sig[_NSIG_WORDS]; member 44 #define sigaddset(set,sig) \ argument 45 (__builtin_constant_p(sig) \ 46 ? __const_sigaddset((set), (sig)) \ 47 : __gen_sigaddset((set), (sig))) 56 unsigned long sig = _sig - 1; in __const_sigaddset() local 57 set->sig[sig / _NSIG_BPW] |= 1 << (sig % _NSIG_BPW); in __const_sigaddset() 60 #define sigdelset(set, sig) \ argument 61 (__builtin_constant_p(sig) \ 62 ? __const_sigdelset((set), (sig)) \ [all …]
|
D | cpu.h | 38 unsigned int x86_family(unsigned int sig); 39 unsigned int x86_model(unsigned int sig); 40 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 | 34 static void sig_handler_common(int sig, struct siginfo *si, mcontext_t *mc) in sig_handler_common() argument 40 if (sig == SIGSEGV) { in sig_handler_common() 47 if ((sig != SIGIO) && (sig != SIGWINCH)) in sig_handler_common() 50 (*sig_info[sig])(sig, si, &r); in sig_handler_common() 74 void sig_handler(int sig, struct siginfo *si, mcontext_t *mc) in sig_handler() argument 81 (sig == SIGIO)) { in sig_handler() 89 if (!enabled && (sig == SIGIO)) { in sig_handler() 107 sig_handler_common(sig, si, mc); in sig_handler() 123 void timer_alarm_handler(int sig, struct siginfo *unused_si, mcontext_t *mc) in timer_alarm_handler() argument 165 static void sigusr1_handler(int sig, struct siginfo *unused_si, mcontext_t *mc) in sigusr1_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 | 58 int sig; in sysn32_rt_sigreturn() local 69 sig = restore_sigcontext(regs, &frame->rs_uc.uc_mcontext); in sysn32_rt_sigreturn() 70 if (sig < 0) in sysn32_rt_sigreturn() 72 else if (sig) in sysn32_rt_sigreturn() 73 force_sig(sig); in sysn32_rt_sigreturn() 125 regs->regs[ 4] = ksig->sig; in setup_rt_frame_n32()
|
D | signal.c | 384 int err, sig = 0, tmp __maybe_unused; in protected_restore_fp_context() local 400 err = sig = fpcsr_pending(csr); in protected_restore_fp_context() 435 return err ?: sig; in protected_restore_fp_context() 498 int err, sig = 0; in fpcsr_pending() local 510 sig = SIGFPE; in fpcsr_pending() 512 return err ?: sig; in fpcsr_pending() 595 SYSCALL_DEFINE3(sigaction, int, sig, const struct sigaction __user *, act, in SYSCALL_DEFINE3() argument 609 err |= __get_user(mask, &act->sa_mask.sig[0]); in SYSCALL_DEFINE3() 616 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in SYSCALL_DEFINE3() 623 err |= __put_user(old_ka.sa.sa_mask.sig[0], oact->sa_mask.sig); in SYSCALL_DEFINE3() [all …]
|
/arch/x86/boot/compressed/ |
D | mem.c | 24 u32 eax, sig[3]; in early_is_tdx_guest() local 27 &sig[0], &sig[2], &sig[1]); in early_is_tdx_guest() 28 is_tdx = !memcmp(TDX_IDENT, sig, sizeof(sig)); in early_is_tdx_guest()
|
D | tdx.c | 66 u32 eax, sig[3]; in early_tdx_detect() local 68 cpuid_count(TDX_CPUID_LEAF_ID, 0, &eax, &sig[0], &sig[2], &sig[1]); in early_tdx_detect() 70 if (memcmp(TDX_IDENT, sig, sizeof(sig))) in early_tdx_detect()
|
/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 | 35 # define PUT_SIGSET(k,u) __copy_to_user((u)->sig, (k)->sig, sizeof(sigset_t)) 36 # define GET_SIGSET(k,u) __copy_from_user((k)->sig, (u)->sig, sizeof(sigset_t)) 38 # define PUT_SIGSET(k,u) __put_user((k)->sig[0], &(u)->sig[0]) 39 # define GET_SIGSET(k,u) __get_user((k)->sig[0], &(u)->sig[0]) 259 force_sigsegv(ksig->sig); in setup_frame() 267 force_sigsegv(ksig->sig); in setup_frame() 271 err = __put_user(ksig->sig, &frame->arg0); in setup_frame() 284 force_sigsegv(ksig->sig); in setup_frame() 311 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 | 175 __do_user_fault(unsigned long addr, unsigned int fsr, unsigned int sig, in __do_user_fault() argument 184 if (((user_debug & UDBG_SEGV) && (sig == SIGSEGV)) || in __do_user_fault() 185 ((user_debug & UDBG_BUS) && (sig == SIGBUS))) { in __do_user_fault() 188 tsk->comm, sig, addr, fsr); in __do_user_fault() 194 if ((sig == SIGSEGV) && ((addr & PAGE_MASK) == 0xffff0000)) in __do_user_fault() 203 force_sig_fault(sig, code, (void __user *)addr); in __do_user_fault() 243 int sig, code; in do_page_fault() local 349 sig = SIGBUS; in do_page_fault() 356 sig = SIGSEGV; in do_page_fault() 361 __do_user_fault(addr, fsr, sig, code, regs); in do_page_fault() [all …]
|
/arch/um/kernel/ |
D | trap.c | 183 void segv_handler(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs) in segv_handler() argument 276 void relay_signal(int sig, struct siginfo *si, struct uml_pt_regs *regs) in relay_signal() argument 280 if (sig == SIGBUS) in relay_signal() 283 panic("Kernel mode signal %d", sig); in relay_signal() 286 arch_examine_signal(sig, regs); in relay_signal() 293 if ((err == 0) && (siginfo_layout(sig, code) == SIL_FAULT)) { in relay_signal() 296 force_sig_fault(sig, code, (void __user *)FAULT_ADDRESS(*fi)); in relay_signal() 299 sig, code, err); in relay_signal() 300 force_sig(sig); in relay_signal() 304 void bus_handler(int sig, struct siginfo *si, struct uml_pt_regs *regs) in bus_handler() argument [all …]
|
/arch/um/include/shared/ |
D | kern_util.h | 28 extern void relay_signal(int sig, struct siginfo *si, struct uml_pt_regs *regs); 39 extern void timer_handler(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs); 63 extern void segv_handler(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs); 64 extern void bus_handler(int sig, struct siginfo *si, struct uml_pt_regs *regs); 65 extern void winch(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs);
|
/arch/x86/um/ |
D | signal.c | 342 int sig; member 352 int sig; member 366 int err = 0, sig = ksig->sig; in setup_signal_stack_sc() local 379 err |= __put_user(sig, &frame->sig); in setup_signal_stack_sc() 380 err |= copy_sc_to_user(&frame->sc, &frame->fpstate, regs, mask->sig[0]); in setup_signal_stack_sc() 382 err |= __copy_to_user(&frame->extramask, &mask->sig[1], in setup_signal_stack_sc() 401 PT_REGS_AX(regs) = (unsigned long) sig; in setup_signal_stack_sc() 412 int err = 0, sig = ksig->sig; in setup_signal_stack_si() local 424 err |= __put_user(sig, &frame->sig); in setup_signal_stack_si() 447 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/ia64/lib/ |
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
|
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
|
/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()
|
/arch/x86/kernel/cpu/microcode/ |
D | intel.c | 43 unsigned int sig; member 81 csig.sig = eax; in intel_cpu_collect_info() 110 if (intel_cpu_signatures_match(csig, cpf, mc_hdr->sig, mc_hdr->pf)) in intel_find_matching_signature() 121 if (intel_cpu_signatures_match(csig, cpf, ext_sig->sig, ext_sig->pf)) in intel_find_matching_signature() 231 sum = (mc_header->sig + mc_header->pf + mc_header->cksum) - in intel_microcode_sanity_check() 232 (ext_sig->sig + ext_sig->pf + ext_sig->cksum); in intel_microcode_sanity_check() 278 unsigned int sig, pf; in save_microcode_patch() local 284 sig = mc_saved_hdr->sig; in save_microcode_patch() 287 if (intel_find_matching_signature(data, sig, pf)) { in save_microcode_patch() 319 if (!intel_find_matching_signature(p->data, uci->cpu_sig.sig, uci->cpu_sig.pf)) in save_microcode_patch() [all …]
|
/arch/arm64/kernel/ |
D | signal32.c | 53 cset.sig[0] = set->sig[0] & 0xffffffffull; in put_sigset_t() 54 cset.sig[1] = set->sig[0] >> 32; in put_sigset_t() 67 set->sig[0] = s32.sig[0] | (((long)s32.sig[1]) << 32); in get_sigset_t() 280 if (compat_restore_sigframe(regs, &frame->sig)) in COMPAT_SYSCALL_DEFINE0() 283 if (compat_restore_altstack(&frame->sig.uc.uc_stack)) in COMPAT_SYSCALL_DEFINE0() 387 __put_user_error(set->sig[0], &sf->uc.uc_mcontext.oldmask, err); in compat_setup_sigframe() 416 __put_user_error(0, &frame->sig.uc.uc_flags, err); in compat_setup_rt_frame() 417 __put_user_error(0, &frame->sig.uc.uc_link, err); in compat_setup_rt_frame() 419 err |= __compat_save_altstack(&frame->sig.uc.uc_stack, regs->compat_sp); in compat_setup_rt_frame() 421 err |= compat_setup_sigframe(&frame->sig, regs, set); in compat_setup_rt_frame() [all …]
|
/arch/powerpc/include/asm/ |
D | nvram.h | 63 extern loff_t nvram_create_partition(const char *name, int sig, 65 extern int nvram_remove_partition(const char *name, int sig, 68 extern loff_t nvram_find_partition(const char *name, int sig, int *out_size);
|