glibc/sysdeps/unix/sysv/linux/powerpc
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
..
bits libc-vdso.h place consolidation 2015-04-20 08:51:17 -03:00
powerpc32 powerpc: Add hwcap/hwcap2/platform data to TCB. 2015-12-03 13:56:13 -02:00
powerpc64 powerpc: Add hwcap/hwcap2/platform data to TCB. 2015-12-03 13:56:13 -02:00
sys Update <sys/ptrace.h> for Linux 4.3. 2015-11-23 17:53:08 +00:00
arch-fork.h Split arch-fork.h from fork.h 2014-05-16 11:17:41 -07:00
configure Move architecture cases out of sysdeps/unix/sysv/linux/configure.ac. 2014-06-24 20:53:03 +00:00
configure.ac Move architecture cases out of sysdeps/unix/sysv/linux/configure.ac. 2014-06-24 20:53:03 +00:00
dl-brk.S
dl-cache.h
dl-static.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
dl-sysdep.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
elision-conf.c powerpc: Fix Copyright dates and CL entry 2015-01-12 12:58:34 -05:00
elision-conf.h powerpc: Fix Copyright dates and CL entry 2015-01-12 12:58:34 -05:00
elision-lock.c powerpc: Fix usage of elision transient failure adapt param 2015-10-27 17:27:41 -02:00
elision-timed.c powerpc: Fix Copyright dates and CL entry 2015-01-12 12:58:34 -05:00
elision-trylock.c powerpc: More elision improvements 2015-11-19 16:15:42 -02:00
elision-unlock.c powerpc: Optimize lock elision for pthread_mutex_t 2015-10-15 18:56:10 -03:00
force-elision.h powerpc: Fix Copyright dates and CL entry 2015-01-12 12:58:34 -05:00
get_clockfreq.c Use inline syscalls for non-cancellable versions 2015-06-04 14:52:34 -03:00
get_timebase_freq.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getdents64.c
getmsg.c
getrlimit64.c
gettimeofday.c libc-vdso.h place consolidation 2015-04-20 08:51:17 -03:00
htm.h powerpc: More elision improvements 2015-11-19 16:15:42 -02:00
Implies NPTL is no longer an add-on! 2014-07-07 09:29:06 -07:00
init-first.c Consolidate gettimeofday across aarch64/s390/tile 2015-05-26 17:03:35 -03:00
ioctl.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
ipc_priv.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
kernel_termios.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
kernel-features.h Call direct system calls for socket operations 2015-08-25 13:45:56 -03:00
ldconfig.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
ldd-rewrite.sed
ldsodefs.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
libc-start.c powerpc: Add hwcap/hwcap2/platform data to TCB. 2015-12-03 13:56:13 -02:00
libc-vdso.h Consolidate vDSO macros and usage 2015-05-26 10:10:36 -03:00
lowlevellock.h powerpc: Optimize lock elision for pthread_mutex_t 2015-10-15 18:56:10 -03:00
Makefile powerpc __tls_get_addr call optimization 2015-03-25 15:53:47 +10:30
nldbl-abi.h 2006-01-27 Dwayne Grant McConnell <decimal@us.ibm.com> 2006-01-28 00:15:15 +00:00
oldgetrlimit64.c
profil-counter.h
pt-longjmp.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
pthread_attr_setstack.c PowerPC: Move remaining nptl/sysdeps/unix/sysv/linux/powerpc/ files. 2014-05-26 11:45:14 -05:00
pthread_attr_setstacksize.c PowerPC: Move remaining nptl/sysdeps/unix/sysv/linux/powerpc/ files. 2014-05-26 11:45:14 -05:00
pthread_mutex_cond_lock.c powerpc: Fix Copyright dates and CL entry 2015-01-12 12:58:34 -05:00
pthread_mutex_lock.c powerpc: Fix Copyright dates and CL entry 2015-01-12 12:58:34 -05:00
pthread_mutex_timedlock.c powerpc: Fix Copyright dates and CL entry 2015-01-12 12:58:34 -05:00
pthread_mutex_trylock.c powerpc: Fix Copyright dates and CL entry 2015-01-12 12:58:34 -05:00
putmsg.c
readdir64_r.c
readdir64.c
readelflib.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
rt-sysdep.c
sigcontextinfo.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
syscall.S powerpc: Fix tabort usage in syscalls 2015-08-25 13:45:56 -03:00
syscalls.list Remove __libc_waitpid function name. 2014-11-07 01:27:16 +00:00
sysdep.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
test-gettimebasefreq.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
time.c libc-vdso.h place consolidation 2015-04-20 08:51:17 -03:00
Versions Add version set GLIBC_2.19 for linux/powerpc 2015-08-17 16:21:51 +02:00