1 long esp = ppc_regs.gpr[1]; 2 struct sigcontext sc; 3 4 /* Skip dummy stack frame. */ 5 #ifdef POWERPC64 6 if (current_personality == 0) 7 esp += 128; 8 else 9 #endif 10 esp += 64; 11 12 if (umove(tcp, esp, &sc) < 0) { 13 tprintf("{mask=%#lx}", esp); 14 } else { 15 unsigned long mask[NSIG / 8 / sizeof(long)]; 16 #ifdef POWERPC64 17 mask[0] = sc.oldmask | (sc._unused[3] << 32); 18 #else 19 mask[0] = sc.oldmask; 20 mask[1] = sc._unused[3]; 21 #endif 22 tprintsigmask_addr("{mask=", mask); 23 tprints("}"); 24 } 25