summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/x86_64
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-10-20 06:59:57 +0000
committerJakub Jelinek <jakub@redhat.com>2005-10-20 06:59:57 +0000
commitb7071f6fc41f4c20510de3683f39e5c8ea8a2e1e (patch)
tree852f4f1992a3c9ecbb44b822df6702c7e635fc5a /sysdeps/unix/sysv/linux/x86_64
parentacfebba27b162b3064c616142883541eaef3f725 (diff)
Updated to fedora-glibc-20051020T0651
Diffstat (limited to 'sysdeps/unix/sysv/linux/x86_64')
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/bits/mman.h3
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/ucontext_i.h32
2 files changed, 29 insertions, 6 deletions
diff --git a/sysdeps/unix/sysv/linux/x86_64/bits/mman.h b/sysdeps/unix/sysv/linux/x86_64/bits/mman.h
index a7bac26935..cc6be43a1c 100644
--- a/sysdeps/unix/sysv/linux/x86_64/bits/mman.h
+++ b/sysdeps/unix/sysv/linux/x86_64/bits/mman.h
@@ -1,5 +1,5 @@
/* Definitions for POSIX memory map interface. Linux/x86_64 version.
- Copyright (C) 2001, 2003 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -79,6 +79,7 @@
/* Flags for `mremap'. */
#ifdef __USE_GNU
# define MREMAP_MAYMOVE 1
+# define MREMAP_FIXED 2
#endif
/* Advice to `madvise'. */
diff --git a/sysdeps/unix/sysv/linux/x86_64/ucontext_i.h b/sysdeps/unix/sysv/linux/x86_64/ucontext_i.h
index 5451a308ee..e5099084cf 100644
--- a/sysdeps/unix/sysv/linux/x86_64/ucontext_i.h
+++ b/sysdeps/unix/sysv/linux/x86_64/ucontext_i.h
@@ -1,6 +1,6 @@
/* Offsets and other constants needed in the *context() function
implementation for Linux/x86-64.
- Copyright (C) 2002 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2005 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -41,7 +41,29 @@
#define oRAX 144
#define oRCX 152
#define oRIP 168
-#define oFPREGS 208
-#define oSIGMASK 280
-#define oFPREGSMEM 408
-#define oMXCSR 432
+#define oFPREGS 224
+#define oSIGMASK 296
+#define oFPREGSMEM 424
+#define oMXCSR 448
+
+/* Tests run in stdlib/tst-ucontext-off. */
+#define TESTS \
+ TEST (uc_mcontext.gregs[REG_RBP], oRBP); \
+ TEST (uc_mcontext.gregs[REG_RSP], oRSP); \
+ TEST (uc_mcontext.gregs[REG_RBX], oRBX); \
+ TEST (uc_mcontext.gregs[REG_R8], oR8); \
+ TEST (uc_mcontext.gregs[REG_R9], oR9); \
+ TEST (uc_mcontext.gregs[REG_R12], oR12); \
+ TEST (uc_mcontext.gregs[REG_R13], oR13); \
+ TEST (uc_mcontext.gregs[REG_R14], oR14); \
+ TEST (uc_mcontext.gregs[REG_R15], oR15); \
+ TEST (uc_mcontext.gregs[REG_RDI], oRDI); \
+ TEST (uc_mcontext.gregs[REG_RSI], oRSI); \
+ TEST (uc_mcontext.gregs[REG_RDX], oRDX); \
+ TEST (uc_mcontext.gregs[REG_RAX], oRAX); \
+ TEST (uc_mcontext.gregs[REG_RCX], oRCX); \
+ TEST (uc_mcontext.gregs[REG_RIP], oRIP); \
+ TEST (uc_mcontext.fpregs, oFPREGS); \
+ TEST (uc_sigmask, oSIGMASK); \
+ TEST (__fpregs_mem, oFPREGSMEM); \
+ TEST (__fpregs_mem.mxcsr, oMXCSR);