2 #include "xlat/sigaltstack_flags.h"
5 print_stack_t(struct tcb *tcp, unsigned long addr)
15 #if SUPPORTED_PERSONALITIES > 1 && SIZEOF_LONG > 4
16 if (current_wordsize != sizeof(ss.ss_sp) && current_wordsize == 4) {
22 r = umove(tcp, addr, &ss32);
24 memset(&ss, 0, sizeof(ss));
25 ss.ss_sp = (void*)(unsigned long) ss32.ss_sp;
26 ss.ss_flags = ss32.ss_flags;
27 ss.ss_size = (unsigned long) ss32.ss_size;
32 r = umove(tcp, addr, &ss);
35 tprintf("%#lx", addr);
37 tprintf("{ss_sp=%#lx, ss_flags=", (unsigned long) ss.ss_sp);
38 printflags(sigaltstack_flags, ss.ss_flags, "SS_???");
39 tprintf(", ss_size=%lu}", (unsigned long) ss.ss_size);
44 sys_sigaltstack(struct tcb *tcp)
47 print_stack_t(tcp, tcp->u_arg[0]);
50 print_stack_t(tcp, tcp->u_arg[1]);