rename amd64 architecture to x86_64
[dragonfly.git] / lib / libc / x86_64 / sys / asmcontext.c
CommitLineData
050a21aa
SS
1#define _KERNEL_STRUCTURES
2#include <sys/types.h>
3#include <sys/ucontext.h>
4#include <sys/assym.h>
5#include <stddef.h>
6
7ASSYM(UC_SIGMASK, offsetof(ucontext_t, uc_sigmask));
8ASSYM(UC_MCONTEXT, offsetof(ucontext_t, uc_mcontext));
9ASSYM(SIG_BLOCK, SIG_BLOCK);
10ASSYM(SIG_SETMASK, SIG_SETMASK);
c1543a89 11#ifdef __x86_64__
5c7fbe3d
MD
12ASSYM(MC_ONSTACK, offsetof(mcontext_t, mc_onstack));
13ASSYM(MC_RDI, offsetof(mcontext_t, mc_rdi));
14ASSYM(MC_RSI, offsetof(mcontext_t, mc_rsi));
15ASSYM(MC_RDX, offsetof(mcontext_t, mc_rdx));
16ASSYM(MC_RCX, offsetof(mcontext_t, mc_rcx));
17ASSYM(MC_R8, offsetof(mcontext_t, mc_r8));
18ASSYM(MC_R9, offsetof(mcontext_t, mc_r9));
19ASSYM(MC_RAX, offsetof(mcontext_t, mc_rax));
20ASSYM(MC_RBX, offsetof(mcontext_t, mc_rbx));
21ASSYM(MC_RBP, offsetof(mcontext_t, mc_rbp));
22ASSYM(MC_R10, offsetof(mcontext_t, mc_r10));
23ASSYM(MC_R11, offsetof(mcontext_t, mc_r11));
24ASSYM(MC_R12, offsetof(mcontext_t, mc_r12));
25ASSYM(MC_R13, offsetof(mcontext_t, mc_r13));
26ASSYM(MC_R14, offsetof(mcontext_t, mc_r14));
27ASSYM(MC_R15, offsetof(mcontext_t, mc_r15));
28ASSYM(MC_TRAPNO, offsetof(mcontext_t, mc_trapno));
29ASSYM(MC_ADDR, offsetof(mcontext_t, mc_addr));
30ASSYM(MC_FLAGS, offsetof(mcontext_t, mc_flags));
31ASSYM(MC_ERR, offsetof(mcontext_t, mc_err));
32ASSYM(MC_RIP, offsetof(mcontext_t, mc_rip));
33ASSYM(MC_CS, offsetof(mcontext_t, mc_cs));
34ASSYM(MC_RFLAGS, offsetof(mcontext_t, mc_rflags));
35ASSYM(MC_RSP, offsetof(mcontext_t, mc_rsp));
36ASSYM(MC_SS, offsetof(mcontext_t, mc_ss));
37ASSYM(MC_FPREGS, offsetof(mcontext_t, mc_fpregs));
38#endif
050a21aa 39ASSYM(MC_LEN, offsetof(mcontext_t, mc_len));
5c7fbe3d
MD
40ASSYM(MC_FPFORMAT, offsetof(mcontext_t, mc_fpformat));
41ASSYM(MC_OWNEDFP, offsetof(mcontext_t, mc_ownedfp));
050a21aa 42ASSYM(SIZEOF_MCONTEXT_T, sizeof(mcontext_t));