Carlos Eduardo Seo
67385a01d2
powerpc: Add hwcap/hwcap2/platform data to TCB.
...
This patch adds a new feature for powerpc. In order to get faster access to
the HWCAP/HWCAP2 bits and platform number (i.e. for implementing
__builtin_cpu_is () / __builtin_cpu_supports () in GCC) without the overhead of
reading from the auxiliary vector, we now reserve space for them in the TCB.
This is an ABI change for GLIBC 2.23.
A new versioned symbol '__parse_hwcap_and_convert_at_platform' is available to
get the data from the auxiliary vector and parse it, and store it for later use
in the TLS initialization code. This function is called very early
(in _dl_sysdep_start () via DL_PLATFORM_INFO for the dynamic linking case, and
in __libc_start_main () for the static linking case) to make sure the data is
available at the time of TLS initialization.
* sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
(sysdep_routines): Likewise.
(sysdep-rtld-routines): Likewise.
[$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
[$(subdir) = nptl](tests-static): test-get_hwcap-static
* sysdeps/powerpc/Versions: Added new
__parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
* sysdeps/powerpc/hwcapinfo.c: New file.
(__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
and parse hwcap, hwcap2 and platform number information.
* sysdeps/powerpc/hwcapinfo.h: New file. Creates global variables
to store HWCAP+HWCAP2 and platform number.
* sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
for HWCAP+HWCAP2 and platform number in the TCB.
* sysdeps/powerpc/nptl/tls.h: New functionality. Stores
the HWCAP, HWCAP2 and platform number in the TCB.
(dtv): Added new fields for HWCAP+HWCAP2 and platform number.
(TLS_INIT_TP): Included calls to add the hwcap and
at_platform values in the TCB in TP initialization.
(TLS_DEFINE_INIT_TP): Likewise.
(THREAD_GET_HWCAP): New macro.
(THREAD_SET_HWCAP): Likewise.
(THREAD_GET_AT_PLATFORM): Likewise.
(THREAD_SET_AT_PLATFORM): Likewise.
* sysdeps/powerpc/powerpc32/dl-machine.h:
(dl_platform_init): New function that calls
__parse_hwcap_and_convert_at_platform for the dymanic linking case for
powerpc32.
* sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
* sysdeps/powerpc/test-get_hwcap-static.c: New file. Testcase for
this functionality, static linking case.
* sysdeps/powerpc/test-get_hwcap.c: New file. Likewise, dynamic
linking case.
* sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
__parse_hwcap_and_convert_at_platform for the static linking case.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
Included the new __parse_hwcap_and_convert_at_platform symbol in the
ABI list for GLIBC 2.23.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
Likewise.
2015-12-03 13:56:13 -02:00
..
2015-11-27 10:22:38 -05:00
2015-12-01 10:25:44 -08:00
2015-11-20 22:49:59 +00:00
2015-12-01 10:25:44 -08:00
2015-12-01 10:25:44 -08:00
2015-11-20 22:49:59 +00:00
2015-11-20 22:49:59 +00:00
2015-11-23 17:53:08 +00:00
2015-09-12 21:09:59 -04:00
2015-11-20 22:49:59 +00:00
2015-11-20 22:49:59 +00:00
2015-11-27 10:22:38 -05:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-11-23 17:52:08 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-11-20 22:49:59 +00:00
2015-12-03 13:56:13 -02:00
2015-12-01 10:25:44 -08:00
2015-01-02 16:29:47 +00:00
2015-11-20 22:49:59 +00:00
2015-12-01 10:25:44 -08:00
2015-11-23 17:53:08 +00:00
2015-11-24 14:09:31 -05:00
2015-10-09 14:26:08 -03:00
2015-12-01 10:25:44 -08:00
2015-11-27 10:22:38 -05:00
2015-10-19 12:04:33 +00:00
2015-06-04 18:58:36 -03:00
2015-11-09 16:14:49 +01:00
2015-10-13 12:01:10 -07:00
2015-01-02 16:29:47 +00:00
2015-10-19 12:04:33 +00:00
2015-01-02 16:29:47 +00:00
2015-08-25 13:45:56 -03:00
2015-11-09 12:48:41 +01:00
2015-11-09 12:48:41 +01:00
2015-01-02 16:29:47 +00:00
2015-05-26 10:10:36 -03:00
2015-05-26 10:10:36 -03:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-06 04:59:13 -08:00
2015-01-02 16:29:47 +00:00
2014-09-16 17:45:03 +00:00
2014-09-16 17:45:03 +00:00
2015-08-25 13:45:56 -03:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2014-06-20 15:41:35 +00:00
2015-01-02 16:29:47 +00:00
2015-10-20 11:54:09 +00:00
2014-06-25 20:29:45 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-06-04 18:58:36 -03:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-10-13 12:01:10 -07:00
2015-01-02 16:29:47 +00:00
2015-10-19 12:04:33 +00:00
2015-06-04 18:58:36 -03:00
2015-06-04 18:58:36 -03:00
2015-09-17 16:38:54 -07:00
2015-10-19 12:04:33 +00:00
2015-10-13 12:01:10 -07:00
2015-01-02 16:29:47 +00:00
2015-10-20 11:51:03 +00:00
2015-01-02 16:29:47 +00:00
2015-10-19 12:04:33 +00:00
2015-08-21 09:57:15 -07:00
2015-01-02 16:29:47 +00:00
2015-06-09 19:52:01 +00:00
2015-08-21 09:57:15 -07:00
2015-07-10 13:47:09 +02:00
2015-10-13 12:01:10 -07:00
2015-10-13 12:01:10 -07:00
2015-08-21 09:57:15 -07:00
2015-08-21 09:57:15 -07:00
2015-10-13 12:01:10 -07:00
2015-10-13 12:01:10 -07:00
2015-10-13 12:01:10 -07:00
2015-10-19 12:04:33 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-10-19 12:04:33 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-10-19 12:04:33 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-08-25 13:45:56 -03:00
2015-01-02 16:29:47 +00:00
2015-08-21 09:57:15 -07:00
2015-10-19 12:04:33 +00:00
2015-08-21 09:57:15 -07:00
2015-08-25 13:45:56 -03:00
2015-08-25 13:45:56 -03:00
2015-01-02 16:29:47 +00:00
2015-09-12 21:09:59 -04:00
2015-05-26 17:03:35 -03:00
2015-09-08 21:11:03 +00:00
2015-11-09 12:48:41 +01:00
2015-01-02 16:29:47 +00:00
2014-06-12 13:48:47 -07:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-10-17 12:02:37 +02:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:54:45 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-08-25 13:45:56 -03:00
2015-08-21 09:57:15 -07:00
2015-01-02 16:29:47 +00:00
2015-10-13 12:01:10 -07:00
2015-08-21 09:57:15 -07:00
2015-10-13 12:01:10 -07:00
2015-01-02 16:29:47 +00:00
2015-11-24 17:21:01 +01:00
2015-01-02 16:29:47 +00:00
2015-10-13 12:01:10 -07:00
2015-08-21 09:57:15 -07:00
2015-01-02 16:29:47 +00:00
2015-06-17 20:20:08 +00:00
2015-10-13 12:01:10 -07:00
2015-06-17 20:19:04 +00:00
2015-06-17 20:19:04 +00:00
2015-10-13 12:01:10 -07:00
2015-08-24 10:53:49 +02:00
2015-10-19 12:04:33 +00:00
2015-06-04 18:58:36 -03:00
2015-06-04 18:58:36 -03:00
2015-11-09 12:48:41 +01:00
2015-11-09 12:48:41 +01:00
2015-06-04 14:52:34 -03:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-06-04 18:58:36 -03:00
2015-08-11 09:37:38 +02:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-05-22 17:09:36 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-05-05 08:28:35 +02:00
2015-05-05 08:28:35 +02:00
2015-01-02 16:29:47 +00:00
2015-06-04 18:58:36 -03:00
2015-06-04 18:58:36 -03:00
2015-06-04 18:58:36 -03:00
2015-06-04 18:58:36 -03:00
2015-10-13 12:01:10 -07:00
2015-01-02 16:29:47 +00:00
2015-06-04 18:58:36 -03:00
2015-10-19 12:04:33 +00:00
2015-01-02 16:29:47 +00:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-01-06 08:23:58 -08:00
2015-11-24 17:21:01 +01:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-05-20 14:52:05 -07:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-06-04 18:58:36 -03:00
2015-06-04 18:58:36 -03:00
2015-06-04 18:58:36 -03:00
2015-10-19 12:04:33 +00:00
2015-10-13 12:01:10 -07:00
2015-01-02 16:29:47 +00:00
2015-08-21 09:57:15 -07:00
2015-11-09 16:14:49 +01:00
2015-08-25 13:45:56 -03:00
2015-06-04 18:58:36 -03:00
2015-08-25 13:45:56 -03:00
2015-01-02 16:29:47 +00:00
2015-10-14 06:33:48 -07:00
2015-06-09 14:56:21 -03:00
2015-11-24 17:21:01 +01:00
2015-09-16 14:51:28 +02:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-10-19 21:23:47 +00:00
2015-11-09 16:14:49 +01:00
2015-06-04 18:58:36 -03:00
2015-08-25 13:45:56 -03:00
2015-08-25 13:45:56 -03:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-10-19 12:04:33 +00:00
2015-08-25 13:45:56 -03:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2014-09-12 12:28:47 +00:00
2015-09-08 21:11:03 +00:00
2015-10-19 12:04:33 +00:00
2015-08-24 10:53:49 +02:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-08-25 13:45:56 -03:00
2015-10-19 12:04:33 +00:00
2015-01-02 16:29:47 +00:00
2015-10-13 12:01:10 -07:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-01-02 16:29:47 +00:00
2015-10-19 12:04:33 +00:00
2015-06-04 18:58:36 -03:00
2015-06-04 18:58:36 -03:00
2015-01-06 08:23:58 -08:00
2015-06-04 18:58:36 -03:00
2015-01-02 16:29:47 +00:00
2015-08-25 13:45:56 -03:00
2015-05-22 17:38:06 -03:00
2015-09-04 15:19:30 -03:00
2015-10-19 12:04:33 +00:00
2015-08-21 09:57:15 -07:00
2015-01-02 16:29:47 +00:00
2015-06-09 19:52:01 +00:00
2015-06-04 18:58:36 -03:00
2015-09-12 21:09:59 -04:00
2015-01-02 16:29:47 +00:00
2015-08-21 09:57:15 -07:00
2015-05-26 10:10:36 -03:00
2015-10-13 11:59:15 -07:00
2014-06-25 18:09:01 +00:00
2015-09-08 21:11:03 +00:00
2015-06-04 18:58:36 -03:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-10-13 12:01:10 -07:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-10-19 12:04:33 +00:00
2015-06-04 18:58:36 -03:00
2015-10-19 21:23:47 +00:00
2015-01-02 16:29:47 +00:00
2015-06-01 22:25:02 -03:00
2015-08-21 09:57:15 -07:00
2015-11-24 17:21:01 +01:00
2015-11-24 17:21:01 +01:00
2015-02-06 12:30:23 -08:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-02-06 12:30:23 -08:00
2015-02-06 12:30:23 -08:00
2015-01-02 16:29:47 +00:00
2015-11-24 17:21:01 +01:00
2015-11-24 17:21:01 +01:00
2015-11-24 17:21:01 +01:00
2015-11-24 17:21:01 +01:00
2015-11-24 17:21:01 +01:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-01-02 16:29:47 +00:00
2015-10-13 12:01:10 -07:00
2015-10-13 12:01:10 -07:00
2015-08-21 09:57:15 -07:00
2015-01-02 16:29:47 +00:00
2015-11-09 12:48:41 +01:00
2015-06-04 18:58:36 -03:00
2015-06-04 18:58:36 -03:00
2015-06-04 18:58:36 -03:00
2015-10-13 12:01:10 -07:00
2015-10-13 12:01:10 -07:00
2015-08-21 09:57:15 -07:00
2015-10-13 12:01:10 -07:00
2015-10-13 12:01:10 -07:00
2015-08-19 04:41:06 -07:00