Dmitry V. Levin
a3c483545a
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.
15 lines
294 B
C
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("}");
|
|
}
|