diff options
author | Roland McGrath <roland@hack.frob.com> | 2011-08-14 15:46:52 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2011-08-14 19:26:49 -0700 |
commit | 5744c68d78f6ca6c6500e2c8d3d85b3a31f4ed2a (patch) | |
tree | 598e4e47557fc1df03d6e01e60f89a48c8cc5fa4 /nptl/sysdeps/i386 | |
parent | 85ae058936c5f6e2bf7fb26979389dd26c9690b5 (diff) | |
download | glibc-5744c68d78f6ca6c6500e2c8d3d85b3a31f4ed2a.tar glibc-5744c68d78f6ca6c6500e2c8d3d85b3a31f4ed2a.tar.gz glibc-5744c68d78f6ca6c6500e2c8d3d85b3a31f4ed2a.tar.bz2 glibc-5744c68d78f6ca6c6500e2c8d3d85b3a31f4ed2a.zip |
Align x86 TCB to 64 bytes (cache line size), important for Atom.
Diffstat (limited to 'nptl/sysdeps/i386')
-rw-r--r-- | nptl/sysdeps/i386/pthreaddef.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/nptl/sysdeps/i386/pthreaddef.h b/nptl/sysdeps/i386/pthreaddef.h index 43b771c6db..1e840664bf 100644 --- a/nptl/sysdeps/i386/pthreaddef.h +++ b/nptl/sysdeps/i386/pthreaddef.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2002, 2003 Free Software Foundation, Inc. +/* Copyright (C) 2002,2003,2011 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@redhat.com>, 2002. @@ -27,8 +27,14 @@ /* Minimal stack size after allocating thread descriptor and guard size. */ #define MINIMAL_REST_STACK 2048 -/* Alignment requirement for TCB. */ -#define TCB_ALIGNMENT 16 +/* Alignment requirement for TCB. + + Some processors such as Intel Atom pay a big penalty on every + access using a segment override if that segment's base is not + aligned to the size of a cache line. (See Intel 64 and IA-32 + Architectures Optimization Reference Manual, section 13.3.3.3, + "Segment Base".) On such machines, a cache line is 64 bytes. */ +#define TCB_ALIGNMENT 64 /* Location of current stack frame. */ |