diff options
author | Ryan S. Arnold <rsa@linux.vnet.ibm.com> | 2013-06-27 15:48:35 -0500 |
---|---|---|
committer | Ryan S. Arnold <rsa@linux.vnet.ibm.com> | 2013-06-27 15:48:35 -0500 |
commit | 0cfec279fbb3c25b9c37e35e303ad4cdab77ed81 (patch) | |
tree | bd6898ac31cecffe9ea408e08113eb6e648ad9a9 /sysdeps/generic | |
parent | fe114d206479a36369d732ea260e81a686fdbb0b (diff) | |
download | glibc-rsa/hwcap2_v5.zip glibc-rsa/hwcap2_v5.tar.gz glibc-rsa/hwcap2_v5.tar.bz2 |
Add GLRO(dl_hwcap2), conditional on per platform HWCAP2_AVAIL.rsa/hwcap2_v5
Diffstat (limited to 'sysdeps/generic')
-rw-r--r-- | sysdeps/generic/dl-hwcap2.h | 25 | ||||
-rw-r--r-- | sysdeps/generic/dl-procinfo.h | 2 | ||||
-rw-r--r-- | sysdeps/generic/ldsodefs.h | 9 |
3 files changed, 35 insertions, 1 deletions
diff --git a/sysdeps/generic/dl-hwcap2.h b/sysdeps/generic/dl-hwcap2.h new file mode 100644 index 0000000..cd6fdf9 --- /dev/null +++ b/sysdeps/generic/dl-hwcap2.h @@ -0,0 +1,25 @@ +/* HWCAP2 Availability Test + Copyright (C) 1998-2013 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 + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + <http://www.gnu.org/licenses/>. */ + +#ifndef _HWCAP2_H +#define _HWCAP2_H 1 + +/* Default to unavailable. */ +#define HWCAP2_AVAIL (0) + +#endif /* dl-hwcap2.h */ diff --git a/sysdeps/generic/dl-procinfo.h b/sysdeps/generic/dl-procinfo.h index 90c87d9..a184a59 100644 --- a/sysdeps/generic/dl-procinfo.h +++ b/sysdeps/generic/dl-procinfo.h @@ -21,7 +21,7 @@ #define _DL_PROCINFO_H 1 /* We cannot provide a general printing function. */ -#define _dl_procinfo(word) -1 +#define _dl_procinfo(type, word) -1 /* There are no hardware capabilities defined. */ #define _dl_hwcap_string(idx) "" diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h index cb17204..edb6efd 100644 --- a/sysdeps/generic/ldsodefs.h +++ b/sysdeps/generic/ldsodefs.h @@ -408,6 +408,7 @@ struct rtld_global size_t count; void *list[50]; } *_dl_scope_free_list; + #ifdef SHARED }; # define __rtld_global_attribute__ @@ -554,6 +555,14 @@ struct rtld_global_ro EXTERN struct link_map *_dl_sysinfo_map; #endif +#include <dl-hwcap2.h> + +#if HWCAP2_AVAIL + /* Mask for more hardware capabilities that are available on some + platforms. */ + EXTERN uint64_t _dl_hwcap2; +#endif + #ifdef SHARED /* We add a function table to _rtld_global which is then used to call the function instead of going through the PLT. The result |