mcontext_t
if (ucp->uc_mcontext.mc_len == sizeof(mcontext_t)) {
ucp->uc_mcontext.mc_len = sizeof(mcontext_t);
ASSYM(MC_ONSTACK, offsetof(mcontext_t, mc_onstack));
ASSYM(MC_RDI, offsetof(mcontext_t, mc_rdi));
ASSYM(MC_RSI, offsetof(mcontext_t, mc_rsi));
ASSYM(MC_RDX, offsetof(mcontext_t, mc_rdx));
ASSYM(MC_RCX, offsetof(mcontext_t, mc_rcx));
ASSYM(MC_R8, offsetof(mcontext_t, mc_r8));
ASSYM(MC_R9, offsetof(mcontext_t, mc_r9));
ASSYM(MC_RAX, offsetof(mcontext_t, mc_rax));
ASSYM(MC_RBX, offsetof(mcontext_t, mc_rbx));
ASSYM(MC_RBP, offsetof(mcontext_t, mc_rbp));
ASSYM(MC_R10, offsetof(mcontext_t, mc_r10));
ASSYM(MC_R11, offsetof(mcontext_t, mc_r11));
ASSYM(MC_R12, offsetof(mcontext_t, mc_r12));
ASSYM(MC_R13, offsetof(mcontext_t, mc_r13));
ASSYM(MC_R14, offsetof(mcontext_t, mc_r14));
ASSYM(MC_R15, offsetof(mcontext_t, mc_r15));
ASSYM(MC_RIP, offsetof(mcontext_t, mc_rip));
ASSYM(MC_CS, offsetof(mcontext_t, mc_cs));
ASSYM(MC_RFLAGS, offsetof(mcontext_t, mc_rflags));
ASSYM(MC_RSP, offsetof(mcontext_t, mc_rsp));
ASSYM(MC_SS, offsetof(mcontext_t, mc_ss));
ASSYM(MC_LEN, offsetof(mcontext_t, mc_len));
ASSYM(MC_FPFORMAT, offsetof(mcontext_t, mc_fpformat));
ASSYM(MC_OWNEDFP, offsetof(mcontext_t, mc_ownedfp));
ASSYM(SIZEOF_MCONTEXT_T, sizeof(mcontext_t));
mcontext_t hmctx; /* TODO: remove this like NetBSD */
mcontext_t hmctx; /* TODO: remove this like NetBSD */
static mcontext_t efi_ctx;
npxpush(mcontext_t *mctx)
npxpop(mcontext_t *mctx)
npxpush(mcontext_t *mctx)
npxpop(mcontext_t *mctx)
mcontext_t uc_mcontext;
mcontext_t *td_kfpuctx; /* kernel_fpu_begin()/kernel_fpu_end() */