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