diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-02-04 22:36:03 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2009-02-04 22:36:03 +0000 |
commit | 73c5dd45bc405428148ee740cac61a1279fe57d4 (patch) | |
tree | 878555d8c116d7ac9cb716b79e10d240fde946a3 /sysdeps/x86_64 | |
parent | 23a4b43d6a98912d505458daeced44b22830a773 (diff) | |
download | glibc-73c5dd45bc405428148ee740cac61a1279fe57d4.tar glibc-73c5dd45bc405428148ee740cac61a1279fe57d4.tar.gz glibc-73c5dd45bc405428148ee740cac61a1279fe57d4.tar.bz2 glibc-73c5dd45bc405428148ee740cac61a1279fe57d4.zip |
Updated to fedora-glibc-20090204T2135cvs/fedora-glibc-2_9_90-3
Diffstat (limited to 'sysdeps/x86_64')
-rw-r--r-- | sysdeps/x86_64/cacheinfo.c | 14 | ||||
-rw-r--r-- | sysdeps/x86_64/stackinfo.h | 12 |
2 files changed, 25 insertions, 1 deletions
diff --git a/sysdeps/x86_64/cacheinfo.c b/sysdeps/x86_64/cacheinfo.c index 6a3ea0f1cb..a7e3fc7633 100644 --- a/sysdeps/x86_64/cacheinfo.c +++ b/sysdeps/x86_64/cacheinfo.c @@ -34,8 +34,10 @@ static const struct intel_02_cache_info { { 0x06, _SC_LEVEL1_ICACHE_SIZE, 8192, 4, 32 }, { 0x08, _SC_LEVEL1_ICACHE_SIZE, 16384, 4, 32 }, + { 0x09, _SC_LEVEL1_ICACHE_SIZE, 32768, 4, 32 }, { 0x0a, _SC_LEVEL1_DCACHE_SIZE, 8192, 2, 32 }, { 0x0c, _SC_LEVEL1_DCACHE_SIZE, 16384, 4, 32 }, + { 0x0d, _SC_LEVEL1_DCACHE_SIZE, 16384, 4, 64 }, { 0x22, _SC_LEVEL3_CACHE_SIZE, 524288, 4, 64 }, { 0x23, _SC_LEVEL3_CACHE_SIZE, 1048576, 8, 64 }, { 0x25, _SC_LEVEL3_CACHE_SIZE, 2097152, 8, 64 }, @@ -80,6 +82,18 @@ static const struct intel_02_cache_info { 0x85, _SC_LEVEL2_CACHE_SIZE, 2097152, 8, 32 }, { 0x86, _SC_LEVEL2_CACHE_SIZE, 524288, 4, 64 }, { 0x87, _SC_LEVEL2_CACHE_SIZE, 1048576, 8, 64 }, + { 0xd0, _SC_LEVEL3_CACHE_SIZE, 524288, 4, 64 }, + { 0xd1, _SC_LEVEL3_CACHE_SIZE, 1048576, 4, 64 }, + { 0xd2, _SC_LEVEL3_CACHE_SIZE, 2097152, 4, 64 }, + { 0xd6, _SC_LEVEL3_CACHE_SIZE, 1048576, 8, 64 }, + { 0xd7, _SC_LEVEL3_CACHE_SIZE, 2097152, 8, 64 }, + { 0xd8, _SC_LEVEL3_CACHE_SIZE, 4194304, 8, 64 }, + { 0xdc, _SC_LEVEL3_CACHE_SIZE, 2097152, 12, 64 }, + { 0xdd, _SC_LEVEL3_CACHE_SIZE, 4194304, 12, 64 }, + { 0xde, _SC_LEVEL3_CACHE_SIZE, 8388608, 12, 64 }, + { 0xe3, _SC_LEVEL3_CACHE_SIZE, 2097152, 16, 64 }, + { 0xe3, _SC_LEVEL3_CACHE_SIZE, 4194304, 16, 64 }, + { 0xe4, _SC_LEVEL3_CACHE_SIZE, 8388608, 16, 64 }, }; #define nintel_02_known (sizeof (intel_02_known) / sizeof (intel_02_known [0])) diff --git a/sysdeps/x86_64/stackinfo.h b/sysdeps/x86_64/stackinfo.h index 60668d10b1..b11849d9ab 100644 --- a/sysdeps/x86_64/stackinfo.h +++ b/sysdeps/x86_64/stackinfo.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2001 Free Software Foundation, Inc. +/* Copyright (C) 2001, 2009 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 @@ -25,4 +25,14 @@ /* On x86_64 the stack grows down. */ #define _STACK_GROWS_DOWN 1 +/* Access to the stack pointer. The macros are used in alloca_account + for which they need to act as barriers as well, hence the additional + (unnecessary) parameters. */ +#define stackinfo_get_sp() \ + ({ void *p__; asm volatile ("mov %%rsp, %0" : "=r" (p__)); p__; }) +#define stackinfo_sub_sp(ptr) \ + ({ ptrdiff_t d__; \ + asm volatile ("sub %%rsp, %0" : "=r" (d__) : "0" (ptr)); \ + d__; }) + #endif /* stackinfo.h */ |