aboutsummaryrefslogtreecommitdiff
path: root/nptl/sysdeps/x86_64
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-05-09 07:53:33 +0000
committerUlrich Drepper <drepper@redhat.com>2003-05-09 07:53:33 +0000
commit880867a475b1016f892a1248a3fce693406bf1f1 (patch)
tree9b2456ac53d0959c24a8851beb1378b949f24338 /nptl/sysdeps/x86_64
parent92d83c725e09dbc76acfedc1cf85a01f9f54452d (diff)
downloadglibc-880867a475b1016f892a1248a3fce693406bf1f1.zip
glibc-880867a475b1016f892a1248a3fce693406bf1f1.tar.gz
glibc-880867a475b1016f892a1248a3fce693406bf1f1.tar.bz2
Update.
2003-05-09 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
Diffstat (limited to 'nptl/sysdeps/x86_64')
-rw-r--r--nptl/sysdeps/x86_64/pthreaddef.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/nptl/sysdeps/x86_64/pthreaddef.h b/nptl/sysdeps/x86_64/pthreaddef.h
index 90a67f1..27896a4 100644
--- a/nptl/sysdeps/x86_64/pthreaddef.h
+++ b/nptl/sysdeps/x86_64/pthreaddef.h
@@ -36,6 +36,17 @@
({ char *frame; asm ("movq %%rsp, %0" : "=r" (frame)); frame; })
+/* We prefer to have the stack allocated in the low 4GB since this
+ allows faster context switches. */
+#define ARCH_MAP_FLAGS MAP_32BIT
+
+/* If it is not possible to allocate memory there retry without that
+ flag. */
+#define ARCH_RETRY_MMAP(size) \
+ mmap (NULL, size, PROT_READ | PROT_WRITE | PROT_EXEC, \
+ MAP_PRIVATE | MAP_ANONYMOUS, -1, 0)
+
+
/* XXX Until we have a better place keep the definitions here. */
/* While there is no such syscall. */