glibc/sysdeps
Paul Clarke cdfbe5037f powerpc: add sysconf support for cache geometries
There is currently no "cross-platform" (x86 and POWER) support for
determining the cacheline size.

This patch adds support to sysconf() to correctly report cacheline sizes
based on the information in the auxilliary vector.

Thus, using sysconf() is a cross-platform (x86 and POWER) solution for
determining cacheline sizes.

Support is added (on powerpc) for:
_SC_LEVEL1_ICACHE_SIZE _SC_LEVEL1_ICACHE_ASSOC _SC_LEVEL1_ICACHE_LINESIZE
_SC_LEVEL1_DCACHE_SIZE _SC_LEVEL1_DCACHE_ASSOC _SC_LEVEL1_DCACHE_LINESIZE
_SC_LEVEL2_CACHE_SIZE  _SC_LEVEL2_CACHE_ASSOC  _SC_LEVEL2_CACHE_LINESIZE
_SC_LEVEL3_CACHE_SIZE  _SC_LEVEL3_CACHE_ASSOC  _SC_LEVEL3_CACHE_LINESIZE

	* sysdeps/unix/sysv/linux/powerpc/sysconf.c: New file.
	Add powerpc-specific overrides for L1, L2, L3 CACHE_SIZEs,
	CACHE_ASSOCs, and CACHE_LINESIZEs, retrieving from auxv.
	* sysdeps/unix/sysv/linux/powerpc/test-powerpc-linux-sysconf.c:
	New file.  Invoke newly supported sysconf values for powerpc,
	and report results.  If none are supported, report so.
	* sysdeps/unix/sysv/linux/powerpc/Makefile (tests):  Add new test,
	tst-sysconf.
2017-06-09 14:36:22 -03:00
..
aarch64 Optimize generic spinlock code and use C11 like atomic macros. 2017-06-06 09:41:56 +02:00
alpha Optimize generic spinlock code and use C11 like atomic macros. 2017-06-06 09:41:56 +02:00
arm Optimize generic spinlock code and use C11 like atomic macros. 2017-06-06 09:41:56 +02:00
generic ld.so: Consolidate 2 strtouls into _dl_strtoul [BZ #21528] 2017-06-08 12:52:42 -07:00
gnu Regenerate sysdeps/gnu/errlist.c. 2017-06-04 15:27:14 -04:00
hppa Optimize generic spinlock code and use C11 like atomic macros. 2017-06-06 09:41:56 +02:00
i386 Optimize generic spinlock code and use C11 like atomic macros. 2017-06-06 09:41:56 +02:00
ia64 Optimize generic spinlock code and use C11 like atomic macros. 2017-06-06 09:41:56 +02:00
ieee754 float128: Add strfromf128 2017-06-07 17:08:21 -03:00
init_array Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
m68k Optimize generic spinlock code and use C11 like atomic macros. 2017-06-06 09:41:56 +02:00
mach Fix struct sigaltstack namespace (bug 21517). 2017-06-05 10:17:46 +00:00
microblaze Optimize generic spinlock code and use C11 like atomic macros. 2017-06-06 09:41:56 +02:00
mips Optimize generic spinlock code and use C11 like atomic macros. 2017-06-06 09:41:56 +02:00
nios2 Optimize generic spinlock code and use C11 like atomic macros. 2017-06-06 09:41:56 +02:00
nptl fork: Remove bogus parent PID assertions [BZ #21386] 2017-05-12 16:04:16 +02:00
posix getaddrinfo: Eliminate another strdup call 2017-06-03 08:37:31 +02:00
powerpc Optimize generic spinlock code and use C11 like atomic macros. 2017-06-06 09:41:56 +02:00
pthread Remove __need macros from signal.h. 2017-05-20 19:04:43 -04:00
s390 S390: Use generic spinlock code. 2017-06-06 09:41:56 +02:00
sh Move shared pthread definitions to common headers 2017-05-09 17:49:17 -03:00
sparc Make LD_HWCAP_MASK usable for static binaries 2017-06-07 11:11:40 +05:30
tile Optimize generic spinlock code and use C11 like atomic macros. 2017-06-06 09:41:56 +02:00
unix powerpc: add sysconf support for cache geometries 2017-06-09 14:36:22 -03:00
wordsize-32 Build divdi3 only for architecture that required it 2017-04-06 15:14:34 -03:00
wordsize-64 Add missing header files throughout the testsuite. 2017-02-16 17:33:18 -05:00
x86 Make LD_HWCAP_MASK usable for static binaries 2017-06-07 11:11:40 +05:30
x86_64 x86-64: Correct comments in ifunc-impl-list.c 2017-06-09 05:53:45 -07:00