xref: /aosp_15_r20/external/strace/linux/microblaze/arch_sigreturn.c (revision cf84ac9a129d8ea9952db616b4e9b904c4bdde56)
1 static void
arch_sigreturn(struct tcb * tcp)2 arch_sigreturn(struct tcb *tcp)
3 {
4 	/* TODO: Verify that this is correct...  */
5 
6 	unsigned long addr;
7 
8 	/* Read r1, the stack pointer.  */
9 	if (upeek(tcp, 1 * 4, &addr) < 0)
10 		return;
11 	addr += offsetof(struct sigcontext, oldmask);
12 
13 	tprints("{mask=");
14 	print_sigset_addr(tcp, addr);
15 	tprints("}");
16 }
17