mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 14:30:06 +00:00
57df0f16b4
This is based on the Linux port's version, but laid out to match Mach's struct i386_thread_state, much like the i386 version does. Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
39 lines
729 B
Plaintext
39 lines
729 B
Plaintext
#include <stddef.h>
|
|
#include <signal.h>
|
|
#include <sys/ucontext.h>
|
|
|
|
--
|
|
|
|
SIG_BLOCK
|
|
SIG_SETMASK
|
|
|
|
_NSIG8 (_NSIG / 8)
|
|
|
|
#define ucontext(member) offsetof (ucontext_t, member)
|
|
#define mcontext(member) ucontext (uc_mcontext.member)
|
|
#define mreg(reg) mcontext (gregs[REG_##reg])
|
|
|
|
oRBP mreg (RBP)
|
|
oRSP mreg (RSP)
|
|
oRBX mreg (RBX)
|
|
oR8 mreg (R8)
|
|
oR9 mreg (R9)
|
|
oR10 mreg (R10)
|
|
oR11 mreg (R11)
|
|
oR12 mreg (R12)
|
|
oR13 mreg (R13)
|
|
oR14 mreg (R14)
|
|
oR15 mreg (R15)
|
|
oRDI mreg (RDI)
|
|
oRSI mreg (RSI)
|
|
oRDX mreg (RDX)
|
|
oRAX mreg (RAX)
|
|
oRCX mreg (RCX)
|
|
oRIP mreg (RIP)
|
|
oRFL mreg (RFL)
|
|
oFPREGS mcontext (fpregs)
|
|
oSIGMASK ucontext (uc_sigmask)
|
|
oFPREGSMEM ucontext (__fpregs_mem)
|
|
oMXCSR ucontext (__fpregs_mem.mxcsr)
|
|
oSSP ucontext (__ssp)
|