aboutsummaryrefslogtreecommitdiff
path: root/linux/mips/arch_sigreturn.c
blob: 687f871dbe605c8e3aa29f39e78e544a921541db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#if defined LINUX_MIPSO32
/*
 * offsetof(struct sigframe, sf_mask) ==
 * sizeof(sf_ass) + sizeof(sf_pad) + sizeof(struct sigcontext)
 */
const long addr = mips_REG_SP + 6 * 4 +
		  sizeof(struct sigcontext);
#else
/*
 * This decodes rt_sigreturn.
 * The 64-bit ABIs do not have sigreturn.
 *
 * offsetof(struct rt_sigframe, rs_uc) ==
 * sizeof(sf_ass) + sizeof(sf_pad) + sizeof(struct siginfo)
 */
const long addr = mips_REG_SP + 6 * 4 + 128 +
		  offsetof(struct ucontext, uc_sigmask);
#endif

tprints("{mask=");
print_sigset_addr_len(tcp, addr, NSIG / 8);
tprints("}");