Home
last modified time | relevance | path

Searched refs:sig (Results 1 – 25 of 145) sorted by relevance

123456

/arch/x86/include/asm/
Dsignal.h24 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 …]
Dcpu.h40 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/
Dcpu.c6 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/
Dsignal.h17 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/
Dsignal.c33 static void sig_handler_common(int sig, struct siginfo *si, mcontext_t *mc) in sig_handler_common() argument
39 if (sig == SIGSEGV) { in sig_handler_common()
46 if ((sig != SIGIO) && (sig != SIGWINCH)) in sig_handler_common()
49 (*sig_info[sig])(sig, si, &r); in sig_handler_common()
75 void sig_handler(int sig, struct siginfo *si, mcontext_t *mc) in sig_handler() argument
79 if ((signals_blocked || !enabled) && (sig == SIGIO)) { in sig_handler()
95 sig_handler_common(sig, si, mc); in sig_handler()
111 void timer_alarm_handler(int sig, struct siginfo *unused_si, mcontext_t *mc) in timer_alarm_handler() argument
153 static void sigusr1_handler(int sig, struct siginfo *unused_si, mcontext_t *mc) in sigusr1_handler() argument
163 static void (*handlers[_NSIG])(int sig, struct siginfo *si, mcontext_t *mc) = {
[all …]
/arch/mips/sgi-ip22/
Dip22-eisa.c54 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/
Dsignal32.c38 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]);
Dsignal_o32.c140 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 …]
Dsignal_n32.c59 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()
Dsignal.c385 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()
589 SYSCALL_DEFINE3(sigaction, int, sig, const struct sigaction __user *, act, in SYSCALL_DEFINE3() argument
603 err |= __get_user(mask, &act->sa_mask.sig[0]); in SYSCALL_DEFINE3()
610 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in SYSCALL_DEFINE3()
617 err |= __put_user(old_ka.sa.sa_mask.sig[0], oact->sa_mask.sig); in SYSCALL_DEFINE3()
[all …]
/arch/ia64/kernel/
Dtraps.c103 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 …]
Dsignal.c36 # 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()
362 if (ksig.sig <= 0) in ia64_do_signal()
/arch/arm/mm/
Dfault.c136 __do_user_fault(unsigned long addr, unsigned int fsr, unsigned int sig, in __do_user_fault() argument
145 if (((user_debug & UDBG_SEGV) && (sig == SIGSEGV)) || in __do_user_fault()
146 ((user_debug & UDBG_BUS) && (sig == SIGBUS))) { in __do_user_fault()
149 tsk->comm, sig, addr, fsr); in __do_user_fault()
155 if ((sig == SIGSEGV) && ((addr & PAGE_MASK) == 0xffff0000)) in __do_user_fault()
164 force_sig_fault(sig, code, (void __user *)addr); in __do_user_fault()
244 int sig, code; in do_page_fault() local
345 sig = SIGBUS; in do_page_fault()
352 sig = SIGSEGV; in do_page_fault()
357 __do_user_fault(addr, fsr, sig, code, regs); in do_page_fault()
[all …]
/arch/um/include/shared/
Dkern_util.h28 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);
65 extern void segv_handler(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs);
66 extern void bus_handler(int sig, struct siginfo *si, struct uml_pt_regs *regs);
67 extern void winch(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs);
/arch/um/kernel/
Dtrap.c181 void segv_handler(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs) in segv_handler() argument
274 void relay_signal(int sig, struct siginfo *si, struct uml_pt_regs *regs) in relay_signal() argument
278 if (sig == SIGBUS) in relay_signal()
281 panic("Kernel mode signal %d", sig); in relay_signal()
284 arch_examine_signal(sig, regs); in relay_signal()
291 if ((err == 0) && (siginfo_layout(sig, code) == SIL_FAULT)) { in relay_signal()
294 force_sig_fault(sig, code, (void __user *)FAULT_ADDRESS(*fi)); in relay_signal()
297 sig, code, err); in relay_signal()
298 force_sig(sig); in relay_signal()
302 void bus_handler(int sig, struct siginfo *si, struct uml_pt_regs *regs) in bus_handler() argument
[all …]
/arch/x86/kernel/cpu/microcode/
Dintel.c72 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/x86/um/
Dsignal.c341 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 …]
Dbugs_32.c16 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/
Didiv32.S50 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
Didiv64.S44 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/
Dfpu.c94 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/ia32/
Dia32_signal.c108 if (__get_user(set.sig[0], &frame->sc.oldmask) in COMPAT_SYSCALL_DEFINE0()
133 if (__get_user(set.sig[0], (__u64 __user *)&frame->uc.uc_sigmask)) in COMPAT_SYSCALL_DEFINE0()
196 if (__unsafe_setup_sigcontext32(sc, fp, regs, set->sig[0])) \
234 int ia32_setup_frame(int sig, struct ksignal *ksig, in ia32_setup_frame() argument
268 unsafe_put_user(sig, &frame->sig, Efault); in ia32_setup_frame()
270 unsafe_put_user(set->sig[1], &frame->extramask[0], Efault); in ia32_setup_frame()
284 regs->ax = sig; in ia32_setup_frame()
300 int ia32_setup_rt_frame(int sig, struct ksignal *ksig, in ia32_setup_rt_frame() argument
325 unsafe_put_user(sig, &frame->sig, Efault); in ia32_setup_rt_frame()
361 regs->ax = sig; in ia32_setup_rt_frame()
/arch/powerpc/include/asm/
Dnvram.h63 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);
/arch/arm64/include/asm/
Dsignal.h10 unsigned long sig, in arch_untagged_si_addr() argument
18 if (sig == SIGTRAP && si_code == TRAP_BRKPT) in arch_untagged_si_addr()
/arch/arm64/kernel/
Dsignal32.c53 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 …]

123456