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.
13 lines
266 B
C
13 lines
266 B
C
/* TODO: Verify that this is correct... */
|
|
|
|
long addr;
|
|
|
|
/* Read r1, the stack pointer. */
|
|
if (upeek(tcp->pid, 1 * 4, &addr) < 0)
|
|
return 0;
|
|
addr += offsetof(struct sigcontext, oldmask);
|
|
|
|
tprints("{mask=");
|
|
print_sigset_addr_len(tcp, addr, NSIG / 8);
|
|
tprints("}");
|