summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/powerpc
AgeCommit message (Collapse)AuthorFilesLines
2013-10-18Add e500 port.Joseph Myers2-1/+4
2013-10-04Move powerpc ports pieces to libc.Joseph Myers24-0/+4153
2013-10-04e500 port: getcontext / setcontext / swapcontext.Joseph Myers3-0/+17
2013-10-04PowerPC SIGSTKSZAlan Modra1-0/+54
http://sourceware.org/ml/libc-alpha/2013-08/msg00093.html This copies the sparc version of sigstack.h, which gives powerpc #define MINSIGSTKSZ 4096 #define SIGSTKSZ 16384 Before the VSX changes, struct rt_sigframe size was 1920 plus 128 for __SIGNAL_FRAMESIZE giving ppc64 exactly the default MINSIGSTKSZ of 2048. After VSX, ucontext increased by 256 bytes. Oops, we're over MINSIGSTKSZ, so powerpc has been using the wrong value for quite a while. Add another ucontext for TM and rt_sigframe is now at 3872, giving actual MINSIGSTKSZ of 4000. The glibc testcase that I was looking at was tst-cancel21, which allocates 2*SIGSTKSZ (not because the test is trying to be conservative, but because the test actually has nested signal stack frames). We blew the allocation by 48 bytes when using current mainline gcc to compile glibc (le ppc64). The required stack depth in _dl_lookup_symbol_x from the top of the next signal frame was 10944 bytes. I guess you'd want to add 288 to that, implying an actual SIGSTKSZ of 11232. * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
2013-10-04PowerPC makecontextAlan Modra2-4/+10
http://sourceware.org/ml/libc-alpha/2013-08/msg00092.html Use conditional form of branch and link to avoid destroying the cpu link stack used to predict blr return addresses. * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use conditional form of branch and link when obtaining pc. * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
2013-10-04PowerPC LE _dl_hwcap accessAlan Modra3-16/+16
http://sourceware.org/ml/libc-alpha/2013-08/msg00091.html More LE support, correcting word accesses to _dl_hwcap. * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use HIWORD/LOWORD. * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto. * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
2013-08-29Remove aix specific files.Ondřej Bílka9-869/+0
2013-08-29Fix typos.Ondřej Bílka4-4/+4
2013-08-20PowerPC: fix backtrace to handle signal trampolinesAdhemerval Zanella2-0/+23
This patch fixes backtrace for PPC32 and PPC64 to correctly handle signal trampolines. The 'debug/tst-backtrace6.c' also check for SA_SIGINFO handling, where is triggers another vDSO symbols for PPC32.
2013-07-23PowerPC: use _dl_static_init to set GLRO(gl_pagesize)Adhemerval Zanella4-0/+129
This patch fixes dlfcn/tststatic5 for PowerPC where pagesize variable was not properly initialized in certain cases. This patch is based on other architecture code.
2013-07-04Sync sys/ptrace with Linux 3.10Andreas Jaeger1-1/+20
2013-06-24PowerPC: Enable POWER8 platform sans hwcap bits.Ryan S. Arnold2-0/+4
2013-06-15New API to set default thread attributesSiddhesh Poyarekar2-0/+8
This patch introduces two new convenience functions to set the default thread attributes used for creating threads. This allows a programmer to set the default thread attributes just once in a process and then run pthread_create without additional attributes.
2013-06-06Fix leading whitespaces.Ondrej Bilka1-1/+1
2013-06-05Remove trailing whitespace.Joseph Myers5-29/+29
2013-05-16Add #include <stdint.h> for uint[32|64]_t usage (except installed headers).Ryan S. Arnold1-0/+1
2013-05-03PowerPC: Add time vDSO supportAdhemerval Zanella4-3/+70
PowerPC kernel now provides a vDSO implementation for time syscall (commit fcb41a2030abe0eb716ef0798035ef9562097f42). This patch changes time syscall wrapper to use the vDSO when available. It also changes the default non vDSO time on PowerPC to use sysdeps/posix/time.c (since gettimeofday is a vDSO call).
2013-04-02New <math.h> macro named issignaling to check for a signaling NaN (sNaN).Thomas Schwinge2-0/+10
It is based on draft TS 18661 and currently enabled as a GNU extension.
2013-03-15PowerPC: gettimeofday optimization by using IFUNCAdhemerval Zanella2-12/+46
2013-03-08PowerPC: unify math_ldbl.h implementationsAdhemerval Zanella1-4/+0
This patch removes redudant definition from PowerPC specific math_ldbl, using the definitions from ieee754 math_ldbl.h.
2013-03-06Sync with Linux 3.8Andreas Jaeger2-1/+3
2013-03-06Remove powerpc64 bounded-pointers code.Joseph Myers2-14/+6
2013-03-05Define MCL_CURRENT, MCL_FUTURE in bits/mman-linux.hAndreas Jaeger1-4/+3
* sysdeps/unix/sysv/linux/s390/bits/mman.h: Include <bits/mman-linux.h>. (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value is fine. * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of <bits/mman-linux.h> to end of file. (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value is fine. * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of <bits/mman-linux.h> to end of file. (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value is fine. * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of <bits/mman-linux.h> to end of file. * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT] (MCL_CURRENT, MCL_FUTURE): Define here.
2013-03-04Create <bits/mman-linux.h>Andreas Jaeger1-69/+3
* sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux common definitions. * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines provided by bits/mman-linux.h and include <bits/mman-linux.h>. * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise. * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise. * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise. * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2013-02-28Remove powerpc32 bounded-pointers code.Joseph Myers2-14/+6
2013-02-18C++11 thread_local destructors supportSiddhesh Poyarekar2-0/+6
This feature is specifically for the C++ compiler to offload calling thread_local object destructors on thread program exit, to glibc. This is to overcome the possible complication of destructors of thread_local objects getting called after the DSO in which they're defined is unloaded by the dynamic linker. The DSO is marked as 'unloadable' if it has a constructed thread_local object and marked as 'unloadable' again when all the constructed thread_local objects defined in it are destroyed.
2013-02-14Remove bp-sym.h and BP_SYM uses from C code.Joseph Myers1-9/+6
2013-02-13Remove __ptrvalue, __bounded and __unbounded.Joseph Myers1-18/+12
2013-02-08Remove CHECK_N and bp-checks.h.Joseph Myers8-32/+16
2013-02-08Remove CHECK_1 and CHECK_1_NULL_OK.Joseph Myers1-2/+1
2013-02-04Remove CHECK_STRING, CHECK_STRING_NULL_OK and __ubp_memchr.Joseph Myers1-2/+1
2013-02-01Remove bp-start.h and INIT_ARGV_and_ENVIRON.Joseph Myers1-1/+0
2013-01-18PowerPC: Rename __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.Anton Blanchard4-29/+33
In order for the __kernel_get_tbfreq vDSO call to work the INTERNAL_VSYSCALL_NCS macro needed to be updated to prevent it from assuming an integer return type (since the timebase frequency is a 64-bit value) by specifying the type of the return type as a macro parameter. The macro then specifically declares the return value as a 'register' (or implied pair) of the denoted type. The compiler is then informed that this register (or implied pair) is to be used for the return value.
2013-01-10Revert "Use ieee754/dbl-64/wordsize-64 on powerpc64"Andreas Schwab1-1/+0
This reverts commit 7a9d2c397195d9a19a95dbcdb59fb5df03f2d940.
2013-01-10Use ieee754/dbl-64/wordsize-64 on powerpc64Andreas Schwab1-0/+1
* sysdeps/ieee754/ldbl-opt/wordsize-64/s_ceil.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_finite.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_floor.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_frexp.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_isinf.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_isnan.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_llround.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_logb.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_lround.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_modf.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_nearbyint.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_remquo.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_rint.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_round.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_scalbln.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_scalbn.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_trunc.c: New file. * sysdeps/unix/sysv/linux/powerpc/powerpc64/Implies: Add ieee754/ldbl-opt/wordsize-64. * sysdeps/powerpc/powerpc64/Implies: Add ieee754/dbl-64/wordsize-64.
2013-01-09PowerPC: Change sched_getcpu to use vDSO getcpu instead of syscall.Anton Blanchard4-0/+36
2013-01-02Update copyright notices with scripts/update-copyrights.Joseph Myers86-91/+86
2013-01-01Add script to update copyright notices and reformat some to facilitate its use.Joseph Myers1-1/+1
2012-12-06Fix "set but not used" warnings for powerpc64Siddhesh Poyarekar1-3/+2
2012-12-04Fix powerpc32 "set but not used" warnings from INTERNAL_SYSCALL_DECL.Joseph Myers1-1/+1
2012-11-09PowerPC: Use <bits/fcntl-linux.h>Andreas Jaeger1-258/+11
* sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all definitions and declarations that are provided by <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
2012-11-04[BZ #157] Remove include/stub-tag.h for good.Thomas Schwinge1-2/+0
2012-11-01PowerPC: Fix uc_link == NULL handling for makecontex.Andreas Schwab1-15/+15
If the function registered with makecontext returns with a NULL context link the process should exit with zero, not non-zero.
2012-10-31Fix powerpc abilist sort orderAndreas Schwab2-2/+2
2012-10-31Correct order of entries in powerpc libc.abilist files.Tulio Magno Quites Machado Filho2-2/+2
2012-10-24BZ#14743: Move clock_* symbols from librt to libc.Roland McGrath3-1/+11
2012-10-12Avoid PLT references from __get_clockfreq on powerpcAndreas Schwab1-5/+5
2012-10-09Add missing magic to GLIBC_PROVIDES.Roland McGrath1-120/+0
2012-10-08Fix missing include in sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.cAndreas Schwab1-0/+1
2012-10-04powerpc: add name_to_handle_at, open_by_handle etc. to bits/fcntl.hKhem Raj1-1/+27
Fixes BZ #14251.