summaryrefslogtreecommitdiffhomepage
path: root/arch/nt64/bits
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-09-19 16:08:40 -0400
committermidipix <writeonce@midipix.org>2016-09-19 16:08:40 -0400
commit9b764445dc02a4a623c4442ada7ac087fc4a3af3 (patch)
treef886d50d9090865f31f2070cc84ae9ad66a201fe /arch/nt64/bits
parent73cc5475548e70737251f10453679e58dd656838 (diff)
downloadmmglue-9b764445dc02a4a623c4442ada7ac087fc4a3af3.tar.bz2
mmglue-9b764445dc02a4a623c4442ada7ac087fc4a3af3.tar.xz
bits/user.h: provide an empty header for inclusion by <sys/user.h>.
At the present, there seems to be no need to provide struct user, or any other debugging structure for that matter, from within libc. This conclusion follows examination of the gdb and llvm sources, and will be confirmed once the above have been ported to midipix.
Diffstat (limited to 'arch/nt64/bits')
-rw-r--r--arch/nt64/bits/user.h44
1 files changed, 0 insertions, 44 deletions
diff --git a/arch/nt64/bits/user.h b/arch/nt64/bits/user.h
index 1bd2d70..e69de29 100644
--- a/arch/nt64/bits/user.h
+++ b/arch/nt64/bits/user.h
@@ -1,44 +0,0 @@
-#undef __WORDSIZE
-#define __WORDSIZE 64
-
-typedef struct user_fpregs_struct
-{
- uint16_t cwd, swd, ftw, fop;
- uint64_t rip, rdp;
- uint32_t mxcsr, mxcr_mask;
- uint32_t st_space[32], xmm_space[64], padding[24];
-} elf_fpregset_t;
-
-struct user_regs_struct
-{
- unsigned long r15, r14, r13, r12, rbp, rbx, r11, r10, r9, r8;
- unsigned long rax, rcx, rdx, rsi, rdi, orig_rax, rip;
- unsigned long cs, eflags, rsp, ss, fs_base, gs_base, ds, es, fs, gs;
-};
-#define ELF_NGREG 27
-typedef unsigned long long elf_greg_t, elf_gregset_t[ELF_NGREG];
-
-struct user
-{
- struct user_regs_struct regs;
- int u_fpvalid;
- struct user_fpregs_struct i387;
- unsigned long u_tsize;
- unsigned long u_dsize;
- unsigned long u_ssize;
- unsigned long start_code;
- unsigned long start_stack;
- long signal;
- int reserved;
- struct user_regs_struct *u_ar0;
- struct user_fpregs_struct *u_fpstate;
- unsigned long magic;
- char u_comm[32];
- unsigned long u_debugreg[8];
-};
-
-#define PAGE_MASK (~(PAGE_SIZE-1))
-#define NBPG PAGE_SIZE
-#define UPAGES 1
-#define HOST_TEXT_START_ADDR (u.start_code)
-#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)