1 static void arch_sigreturn(struct tcb * tcp)2arch_sigreturn(struct tcb *tcp) 3 { 4 /* TODO: Verify that this is correct... */ 5 6 long addr; 7 8 /* Read r1, the stack pointer. */ 9 if (upeek(tcp->pid, 1 * 4, &addr) < 0) 10 return; 11 addr += offsetof(struct sigcontext, oldmask); 12 13 tprints("{mask="); 14 print_sigset_addr_len(tcp, addr, NSIG / 8); 15 tprints("}"); 16 } 17