strace/linux/s390/arch_sigreturn.c
Dmitry V. Levin a3c483545a sigreturn.c: split arch specific code into separate arch files
Split code that use arch-specific registers to separate arch files.

* sigreturn.c (sys_sigreturn): Move arch-specific code
to linux/*/arch_sigreturn.c, include "arch_sigreturn.c".
* linux/arch_sigreturn.c: New file.
* Makefile.am (EXTRA_DIST): Add linux/arch_sigreturn.c
and linux/*/arch_sigreturn.c files.
2015-03-23 22:25:05 +00:00

15 lines
294 B
C

long mask[NSIG / 8 / sizeof(long)];
const long addr = *s390_frame_ptr + __SIGNAL_FRAMESIZE;
if (umove(tcp, addr, &mask) < 0) {
tprintf("{mask=%#lx}", addr);
} else {
#ifdef S390
long v = mask[0];
mask[0] = mask[1];
mask[1] = v;
#endif
tprintsigmask_addr("{mask=", mask);
tprints("}");
}