m68k: add support for {get,make,set,swap}context
[glibc.git] / ports / sysdeps / unix / sysv / linux / m68k / m680x0 / ucontext_i.sym
blob46bd4bf15f80d1c0700de7fe1dceb9cfb201b403
1 #include <stddef.h>
2 #include <signal.h>
3 #include <sys/ucontext.h>
5 --
7 SIG_SETMASK
9 #define ucontext(member)        offsetof (ucontext_t, member)
10 #define mcontext(member)        ucontext (uc_mcontext.member)
12 oLINK           ucontext (uc_link)
13 oSS_SP          ucontext (uc_stack.ss_sp)
14 oSS_SIZE        ucontext (uc_stack.ss_size)
15 oGREGS          mcontext (gregs)
16 oSP             mcontext (gregs[R_SP])
17 oPC             mcontext (gregs[R_PC])
18 oFPREGS         mcontext (fpregs)
19 oFP2            mcontext (fpregs.f_fpregs[2])
20 oSIGMASK        ucontext (uc_sigmask)