summaryrefslogtreecommitdiffstats
path: root/libc/arch-x86_64
Commit message (Collapse)AuthorAgeFilesLines
* Fix sigsuspend to use rt_sigsuspend on all platforms.Elliott Hughes2013-10-153-37/+1
| | | | Change-Id: I981c1a66d35480d4457a0a08a1b042dac94daa5b
* Clean up the sigprocmask/pthread_sigmask implementation.Elliott Hughes2013-10-152-36/+0
| | | | | | | | | | | Let's have both use rt_sigprocmask, like in glibc. The 64-bit ABIs can share the same code as the 32-bit ABIs. Also, let's test the return side of these calls, not just the setting. Bug: 11069919 Change-Id: I11da99f85b5b481870943c520d05ec929b15eddb
* Clean up the cpuacct cruft.Elliott Hughes2013-10-094-9/+9
| | | | Change-Id: I6ed63af8dfc2368e211420389fa8af4d5dc0908f
* Fix __errno for LP64 and clean up __get_tls.Elliott Hughes2013-10-092-34/+0
| | | | | | | | | | | If __get_tls has the right type, a lot of confusing casting can disappear. It was probably a mistake that __get_tls was exposed as a function for mips and x86 (but not arm), so let's (a) ensure that the __get_tls function always matches the macro, (b) that we have the function for arm too, and (c) that we don't have the function for any 64-bit architecture. Change-Id: Ie9cb989b66e2006524ad7733eb6e1a65055463be
* pthread_exit should call __NR_exit with status 0.Elliott Hughes2013-10-081-3/+3
| | | | | | | We shouldn't have been passing the bottom 32 bits of the address used for pthread_join to the kernel. Change-Id: I487e5002d60c27adba51173719213abbee0f183f
* Merge "Add an optional alias list to SYSCALLS.TXT"Elliott Hughes2013-10-081-0/+3
|\
| * Add an optional alias list to SYSCALLS.TXTH.J. Lu2013-10-071-0/+3
| | | | | | | | | | | | | | | | | | This patch adds an optional alias list to SYSCALLS.TXT. It is used to create aliases for a syscall. For x86-64, lseek64 is an alias for lseek. Change-Id: Icb11fd2bb461ea4f5f0a26bfc585471d7d7cc468 Signed-off-by: H.J. Lu <hjl.tools@gmail.com> Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
* | Clean up the x86 and x86_64 _exit_with_stack_teardown implementations.Elliott Hughes2013-10-071-20/+11
|/ | | | Change-Id: I4bcbbc53893612bd94643ef07722becb00f91792
* Add arch-x86_64/include/machine.Elliott Hughes2013-10-0411-0/+766
| | | | | | | | | | | | | This is basically the other half of I5de76f6c46ac87779f207d568a86bb453e2414de from Pavel Chupin <pavel.v.chupin@intel.com>, but taking the exact upstream _types.h instead of the modified version. (I was confused when I suggested otherwise.) I've also cleaned up the internal_types.h situation; we weren't gaining anything from these empty files, and there is no upstream internal_types.h for x86_64. Change-Id: I802a9a6a8df1c979e820659212c75a47c2ef392e
* Add arch-x86_64/bionic.Elliott Hughes2013-10-0417-10/+865
| | | | | | | | This is basically half of I5de76f6c46ac87779f207d568a86bb453e2414de from Pavel Chupin <pavel.v.chupin@intel.com>, but with the stock upstream setjump/sigsetjmp and H.J. Lu's suggested changes to __rt_sigreturn. Change-Id: I8167ec228faeb2065391e5bec0413cca662f3d33
* x86_64: Update Makefiles for x86_64 targets and add symlinksPavel Chupin2013-10-011-0/+19
| | | | | | | | Use basic .c versions of all functions for x86_64 until they are manually optimized and .s versions released. Change-Id: I59bba08931e894822db485c8803c2665c226234a Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
* x86_64: add new __NR_arch_prctl syscallPavel Chupin2013-10-012-0/+18
| | | | | | | | | | This is used to set/get TLS on x86_64. There's no public declaration of this because it's not meant to be used outside the C library, like glibc (though we don't currently have any visibility controls to ensure this). Change-Id: I5fc0a5e3ffc3f4cd597d92ee685ab19568ea18f7 Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
* Regenerate the system call stubs (to get x86_64).Elliott Hughes2013-10-01201-0/+3643
This touches the x86 stubs too because arm, x86, and x86_64 now all share the same header (at a source level), which causes a reordering of the #include lines. Change-Id: If9a1e2b2718bd41d8399fea748bce672c513ef84