Home
last modified time | relevance | path

Searched refs:sa (Results 1 – 25 of 117) sorted by relevance

12345

/arch/s390/kernel/
Dcrash_dump.c62 struct save_area *sa; in save_area_alloc() local
64 sa = (void *) memblock_alloc(sizeof(*sa), 8); in save_area_alloc()
66 list_add(&sa->list, &dump_save_areas); in save_area_alloc()
68 list_add_tail(&sa->list, &dump_save_areas); in save_area_alloc()
69 return sa; in save_area_alloc()
83 void __init save_area_add_regs(struct save_area *sa, void *regs) in save_area_add_regs() argument
88 memcpy(&sa->psw, &lc->psw_save_area, sizeof(sa->psw)); in save_area_add_regs()
89 memcpy(&sa->ctrs, &lc->cregs_save_area, sizeof(sa->ctrs)); in save_area_add_regs()
90 memcpy(&sa->gprs, &lc->gpregs_save_area, sizeof(sa->gprs)); in save_area_add_regs()
91 memcpy(&sa->acrs, &lc->access_regs_save_area, sizeof(sa->acrs)); in save_area_add_regs()
[all …]
Dsignal.c279 if (ka->sa.sa_flags & SA_ONSTACK) { in get_sigframe()
335 if (ka->sa.sa_flags & SA_RESTORER) { in setup_frame()
336 restorer = (unsigned long) ka->sa.sa_restorer; in setup_frame()
352 regs->psw.addr = (unsigned long) ka->sa.sa_handler; in setup_frame()
398 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_rt_frame()
399 restorer = (unsigned long) ksig->ka.sa.sa_restorer; in setup_rt_frame()
430 regs->psw.addr = (unsigned long) ksig->ka.sa.sa_handler; in setup_rt_frame()
445 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in handle_signal()
486 if (!(ksig.ka.sa.sa_flags & SA_RESTART)) { in do_signal()
/arch/m68k/ifpsp060/
DREADME32 fpsp.sa Full FP Kernel Module - hex image
36 pfpsp.sa Partial FP Kernel Module - hex image
39 fplsp.sa FP Library Module - hex image
43 isp.sa Integer Unimplemented Kernel Module - hex image
47 ilsp.sa Integer Unimplemented Library Module - hex image
51 fskeleton.s Sample Call-outs needed by fpsp.sa and pfpsp.sa
53 iskeleton.s Sample Call-outs needed by isp.sa
55 os.s Sample Call-outs needed by fpsp.sa, pfpsp.sa, and isp.sa
57 ftest.sa Simple test program to test that {p}fpsp.sa
61 itest.sa Simple test program to test that isp.sa was
[all …]
DTEST.DOC32 The files itest.sa and ftest.sa contain simple tests to check
37 The release files itest.sa and ftest.sa are essentially
75 is NOT INCLUDED in {i,f}test.sa (an example "Call-out" section is provided at
84 sit adjacent to the {i,f}test.sa image in memory. Since itest.sa and ftest.sa
88 to access the test routines. Since the {i,f}test.sa hex files contain
96 itest.sa data and execute something similar to:
171 Again, itest.sa and ftest.sa are simple tests and do not thoroughly
201 # ftest.sa starts here; start of "Entry-point" section.
/arch/x86/um/os-Linux/
Dtask_size.c70 struct sigaction sa, old; in os_get_top_address() local
90 sa.sa_handler = segfault; in os_get_top_address()
91 sigemptyset(&sa.sa_mask); in os_get_top_address()
92 sa.sa_flags = SA_NODEFER; in os_get_top_address()
93 if (sigaction(SIGSEGV, &sa, &old)) { in os_get_top_address()
/arch/x86/kernel/
Dsignal.c254 if (ka->sa.sa_flags & SA_ONSTACK) { in get_sigframe()
260 !(ka->sa.sa_flags & SA_RESTORER) && in get_sigframe()
261 ka->sa.sa_restorer) { in get_sigframe()
263 sp = (unsigned long) ka->sa.sa_restorer; in get_sigframe()
343 if (ksig->ka.sa.sa_flags & SA_RESTORER) in __setup_frame()
344 restorer = ksig->ka.sa.sa_restorer; in __setup_frame()
363 regs->ip = (unsigned long)ksig->ka.sa.sa_handler; in __setup_frame()
405 if (ksig->ka.sa.sa_flags & SA_RESTORER) in __setup_rt_frame()
406 restorer = ksig->ka.sa.sa_restorer; in __setup_rt_frame()
429 regs->ip = (unsigned long)ksig->ka.sa.sa_handler; in __setup_rt_frame()
[all …]
Dsignal_compat.c101 oact->sa.sa_flags &= ~(SA_IA32_ABI | SA_X32_ABI); in sigaction_compat_abi()
107 act->sa.sa_flags &= ~(SA_IA32_ABI | SA_X32_ABI); in sigaction_compat_abi()
110 act->sa.sa_flags |= SA_IA32_ABI; in sigaction_compat_abi()
112 act->sa.sa_flags |= SA_X32_ABI; in sigaction_compat_abi()
/arch/frv/kernel/
Dsignal.c198 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_frame()
199 if (__put_user(ksig->ka.sa.sa_restorer, &frame->pretcode) < 0) in setup_frame()
219 (struct fdpic_func_descriptor __user *) ksig->ka.sa.sa_handler; in setup_frame()
226 __frame->pc = (unsigned long) ksig->ka.sa.sa_handler; in setup_frame()
279 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_rt_frame()
280 if (__put_user(ksig->ka.sa.sa_restorer, &frame->pretcode)) in setup_rt_frame()
300 (struct fdpic_func_descriptor __user *) ksig->ka.sa.sa_handler; in setup_rt_frame()
307 __frame->pc = (unsigned long) ksig->ka.sa.sa_handler; in setup_rt_frame()
344 if (!(ksig->ka.sa.sa_flags & SA_RESTART)) { in handle_signal()
358 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in handle_signal()
/arch/mips/kernel/
Dsignal32.c52 new_ka.sa.sa_handler = (void __user *)(s64)handler;
53 err |= __get_user(new_ka.sa.sa_flags, &act->sa_flags);
58 siginitset(&new_ka.sa.sa_mask, mask);
66 err |= __put_user(old_ka.sa.sa_flags, &oact->sa_flags);
67 err |= __put_user((u32)(u64)old_ka.sa.sa_handler,
69 err |= __put_user(old_ka.sa.sa_mask.sig[0], oact->sa_mask.sig);
/arch/mips/include/asm/
Dpgtable-bits.h185 int sa; in pte_to_entrylo() local
187 sa = 31 - _PAGE_NO_READ_SHIFT; in pte_to_entrylo()
189 sa = 63 - _PAGE_NO_READ_SHIFT; in pte_to_entrylo()
197 ((pte_val & (_PAGE_NO_EXEC | _PAGE_NO_READ)) << sa); in pte_to_entrylo()
Dsignal.h19 ((ka)->sa.sa_flags & SA_SIGINFO))
24 ((ka)->sa.sa_flags & SA_SIGINFO) : 1) )
/arch/sparc/kernel/
Dsys_sparc32.c174 new_ka.sa.sa_handler = compat_ptr(u_handler); in COMPAT_SYSCALL_DEFINE5()
176 sigset_from_compat(&new_ka.sa.sa_mask, &set32); in COMPAT_SYSCALL_DEFINE5()
177 ret |= get_user(new_ka.sa.sa_flags, &act->sa_flags); in COMPAT_SYSCALL_DEFINE5()
179 new_ka.sa.sa_restorer = compat_ptr(u_restorer); in COMPAT_SYSCALL_DEFINE5()
187 sigset_to_compat(&set32, &old_ka.sa.sa_mask); in COMPAT_SYSCALL_DEFINE5()
188 ret = put_user(ptr_to_compat(old_ka.sa.sa_handler), &oact->sa_handler); in COMPAT_SYSCALL_DEFINE5()
190 ret |= put_user(old_ka.sa.sa_flags, &oact->sa_flags); in COMPAT_SYSCALL_DEFINE5()
191 ret |= put_user(ptr_to_compat(old_ka.sa.sa_restorer), &oact->sa_restorer); in COMPAT_SYSCALL_DEFINE5()
/arch/cris/arch-v10/kernel/
Dsignal.c252 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_frame()
253 return_ip = (unsigned long)ksig->ka.sa.sa_restorer; in setup_frame()
268 regs->irp = (unsigned long) ksig->ka.sa.sa_handler; /* what we enter NOW */ in setup_frame()
311 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_rt_frame()
312 return_ip = (unsigned long)ksig->ka.sa.sa_restorer; in setup_rt_frame()
329 regs->irp = (unsigned long) ksig->ka.sa.sa_handler; in setup_rt_frame()
371 if (!(ksig->ka.sa.sa_flags & SA_RESTART)) { in handle_signal()
384 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in handle_signal()
/arch/sh/kernel/
Dsignal_32.c254 if (ka->sa.sa_flags & SA_ONSTACK) { in get_sigframe()
286 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_frame()
287 regs->pr = (unsigned long) ksig->ka.sa.sa_restorer; in setup_frame()
317 (struct fdpic_func_descriptor __user *)ksig->ka.sa.sa_handler; in setup_frame()
322 regs->pc = (unsigned long)ksig->ka.sa.sa_handler; in setup_frame()
356 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_rt_frame()
357 regs->pr = (unsigned long) ksig->ka.sa.sa_restorer; in setup_rt_frame()
387 (struct fdpic_func_descriptor __user *)ksig->ka.sa.sa_handler; in setup_rt_frame()
392 regs->pc = (unsigned long)ksig->ka.sa.sa_handler; in setup_rt_frame()
405 struct sigaction *sa) in handle_syscall_restart() argument
[all …]
Dsignal_64.c47 handle_syscall_restart(struct pt_regs *regs, struct sigaction *sa) in handle_syscall_restart() argument
62 if (!(sa->sa_flags & SA_RESTART)) in handle_syscall_restart()
96 handle_syscall_restart(regs, &ksig.ka.sa); in do_signal()
368 if ((ka->sa.sa_flags & SA_ONSTACK) != 0 && ! sas_ss_flags(sp)) in get_sigframe()
404 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_frame()
409 ksig->ka->sa.sa_restorer | 0x1); in setup_frame()
452 regs->pc = neff_sign_extend((unsigned long)ksig->ka.sa.sa_handler); in setup_frame()
496 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_rt_frame()
501 ksig->ka.sa.sa_restorer | 0x1); in setup_rt_frame()
533 regs->pc = neff_sign_extend((unsigned long)ksig->ka.sa.sa_handler); in setup_rt_frame()
[all …]
/arch/um/kernel/
Dsignal.c41 if (!(ksig->ka.sa.sa_flags & SA_RESTART)) { in handle_signal()
54 if ((ksig->ka.sa.sa_flags & SA_ONSTACK) && (sas_ss_flags(sp) == 0)) in handle_signal()
58 if (!(ksig->ka.sa.sa_flags & SA_SIGINFO)) in handle_signal()
/arch/x86/ia32/
Dia32_signal.c232 if (ksig->ka.sa.sa_flags & SA_ONSTACK) in get_sigframe()
236 !(ksig->ka.sa.sa_flags & SA_RESTORER) && in get_sigframe()
237 ksig->ka.sa.sa_restorer) in get_sigframe()
238 sp = (unsigned long) ksig->ka.sa.sa_restorer; in get_sigframe()
293 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in ia32_setup_frame()
294 restorer = ksig->ka.sa.sa_restorer; in ia32_setup_frame()
319 regs->ip = (unsigned long) ksig->ka.sa.sa_handler; in ia32_setup_frame()
374 if (ksig->ka.sa.sa_flags & SA_RESTORER) in ia32_setup_rt_frame()
375 restorer = ksig->ka.sa.sa_restorer; in ia32_setup_rt_frame()
398 regs->ip = (unsigned long) ksig->ka.sa.sa_handler; in ia32_setup_rt_frame()
/arch/parisc/include/asm/
Dassembly.h132 .macro shl r, sa, t
133 dep,z \r, 31-(\sa), 32-(\sa), \t
137 .macro shlw r, sa, t
138 depw,z \r, 31-(\sa), 32-(\sa), \t
142 .macro shld r, sa, t
143 depd,z \r, 63-(\sa), 64-(\sa), \t
147 .macro shr r, sa, t
148 extru \r, 31-(\sa), 32-(\sa), \t
152 .macro shrd r, sa, t
153 extrd,u \r, 63-(\sa), 64-(\sa), \t
/arch/tile/kernel/
Dsignal.c136 if (ka->sa.sa_flags & SA_ONSTACK) { in get_sigframe()
163 if (ksig->ka.sa.sa_flags & SA_SIGINFO) { in setup_rt_frame()
182 if (ksig->ka.sa.sa_flags & SA_RESTORER) in setup_rt_frame()
183 restorer = (unsigned long) ksig->ka.sa.sa_restorer; in setup_rt_frame()
192 regs->pc = (unsigned long) ksig->ka.sa.sa_handler; in setup_rt_frame()
227 if (!(ksig->ka.sa.sa_flags & SA_RESTART)) { in handle_signal()
377 tsk->sighand->action[sig-1].sa.sa_handler; in trace_unhandled_signal()
Dcompat_signal.c175 if (ka->sa.sa_flags & SA_ONSTACK) { in compat_get_sigframe()
202 if (ksig->ka.sa.sa_flags & SA_SIGINFO) { in compat_setup_rt_frame()
221 if (ksig->ka.sa.sa_flags & SA_RESTORER) in compat_setup_rt_frame()
222 restorer = ptr_to_compat_reg(ksig->ka.sa.sa_restorer); in compat_setup_rt_frame()
231 regs->pc = ptr_to_compat_reg(ksig->ka.sa.sa_handler); in compat_setup_rt_frame()
/arch/cris/arch-v32/kernel/
Dsignal.c243 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_frame()
244 return_ip = (unsigned long)ksig->ka.sa.sa_restorer; in setup_frame()
271 regs->erp = (unsigned long) ksig->ka.sa.sa_handler; in setup_frame()
314 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_rt_frame()
315 return_ip = (unsigned long) ksig->ka.sa.sa_restorer; in setup_rt_frame()
347 regs->erp = (unsigned long) ksig->ka.sa.sa_handler; in setup_rt_frame()
389 if (!(ksig->ka.sa.sa_flags & SA_RESTART)) { in handle_signal()
408 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in handle_signal()
/arch/alpha/kernel/
Dsignal.c69 __get_user(new_ka.sa.sa_handler, &act->sa_handler) || in SYSCALL_DEFINE3()
70 __get_user(new_ka.sa.sa_flags, &act->sa_flags) || in SYSCALL_DEFINE3()
73 siginitset(&new_ka.sa.sa_mask, mask); in SYSCALL_DEFINE3()
81 __put_user(old_ka.sa.sa_handler, &oact->sa_handler) || in SYSCALL_DEFINE3()
82 __put_user(old_ka.sa.sa_flags, &oact->sa_flags) || in SYSCALL_DEFINE3()
83 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask)) in SYSCALL_DEFINE3()
103 if (copy_from_user(&new_ka.sa, act, sizeof(*act))) in SYSCALL_DEFINE5()
110 if (copy_to_user(oact, &old_ka.sa, sizeof(*oact))) in SYSCALL_DEFINE5()
371 regs->r27 = regs->pc = (unsigned long) ksig->ka.sa.sa_handler; in setup_frame()
425 regs->r27 = regs->pc = (unsigned long) ksig->ka.sa.sa_handler; in setup_rt_frame()
[all …]
/arch/mn10300/kernel/
Dsignal.c227 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_frame()
228 if (__put_user(ksig->ka.sa.sa_restorer, &frame->pretcode)) in setup_frame()
247 regs->pc = (unsigned long) ksig->ka.sa.sa_handler; in setup_frame()
291 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_rt_frame()
292 if (__put_user(ksig->ka.sa.sa_restorer, &frame->pretcode)) in setup_rt_frame()
313 regs->pc = (unsigned long) ksig->ka.sa.sa_handler; in setup_rt_frame()
350 if (!(ksig->ka.sa.sa_flags & SA_RESTART)) { in handle_signal()
363 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in handle_signal()
/arch/powerpc/platforms/4xx/
Dpci.c300 u32 sa; in ppc4xx_configure_pci_PTMs() local
303 sa = (0xffffffffu << ilog2(size)) | 1; in ppc4xx_configure_pci_PTMs()
304 sa |= 0x1; in ppc4xx_configure_pci_PTMs()
308 writel(sa, reg + PCIL0_PTM1MS); in ppc4xx_configure_pci_PTMs()
417 u32 lah, lal, pciah, pcial, sa; in ppc4xx_setup_one_pcix_POM() local
431 sa = (0xffffffffu << ilog2(size)) | 0x1; in ppc4xx_setup_one_pcix_POM()
439 writel(sa, reg + PCIX0_POM0SA); in ppc4xx_setup_one_pcix_POM()
445 writel(sa, reg + PCIX0_POM1SA); in ppc4xx_setup_one_pcix_POM()
501 u32 sa; in ppc4xx_configure_pcix_PIMs() local
508 sa = (0xffffffffu << ilog2(size)) | 1; in ppc4xx_configure_pcix_PIMs()
[all …]
/arch/h8300/kernel/
Dsignal.c171 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in setup_rt_frame()
185 if (ksig->ka.sa.sa_flags & SA_RESTORER) in setup_rt_frame()
186 ret = (unsigned char *)(ksig->ka.sa.sa_restorer); in setup_rt_frame()
201 regs->pc = (unsigned long)ksig->ka.sa.sa_handler; in setup_rt_frame()
227 if (!(ka->sa.sa_flags & SA_RESTART)) { in handle_restart()

12345