summaryrefslogtreecommitdiffstats
path: root/libc/arch-x86/syscalls/mlockall.S
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary instructions from x86/x86_64 syscalls.Elliott Hughes2014-06-051-1/+0
| | | | | | | | __set_errno returns -1 exactly so that callers don't need to bother. The other architectures were already taking advantage of this, but no one had ever fixed x86 and x86_64. Change-Id: Ie131494be664f6c4a1bbf8c61bbbed58eac56122
* Fix x86 cfi directives for syscalls.Christopher Ferris2014-05-291-1/+1
| | | | | | | | The syscall generation always used 4 bytes for each push cfi directive. However, the first push should always use an offset of 8 bytes, each subsequent push after that is only 4 bytes though. Change-Id: Ibaabd107f399ef67010b9a08213783957c2f74a9
* Add cfi directives to x86 syscalls.Christopher Ferris2014-01-061-0/+2
| | | | | | | | | Modify the syscalls script to generate the cfi directives for x86 syscalls. Update the x86 syscalls. Change-Id: Ia1993dc714a7e79f917087fff8200e9a02c52603
* Stop using the non-uapi <linux/err.h> header file.Elliott Hughes2013-11-071-3/+1
| | | | | | | We only need it for MAX_ERRNO, and it's time we had somewhere to put the little assembler utility macros we've been putting off writing. Change-Id: I9354d2e0dc47c689296a34b5b229fc9ba75f1a83
* Sort the syscalls.mk files, give all generated files the same header.Elliott Hughes2013-10-161-1/+2
| | | | | | No non-comment changes to the .S files. Change-Id: Iafcfd004c3ea92b64268f80ab16df615b97cefac
* Regenerate the system call stubs (to get x86_64).Elliott Hughes2013-10-011-1/+1
| | | | | | | | 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
* The SYS_ constants should cover all __NR_ values.Elliott Hughes2013-03-211-1/+1
| | | | | | | | | | | <sys/linux-syscalls.h> only contains constants for the syscalls we're generating stubs for. We want all the syscalls available on the architecture in question. Keep using <sys/linux-syscalls.h> on ARM for now because the __NR_ARM_set_tls and __NR_ARM_cacheflush values aren't in <asm/unistd.h>. Change-Id: I66683950d87d9b18d6107d0acc0ed238a4496f44
* Use the kernel's MAX_ERRNO in the syscall stubs.Elliott Hughes2013-03-121-1/+2
| | | | | Bug: http://code.google.com/p/android/issues/detail?id=53104 Change-Id: Iaabf7025b153e96dc5eca231a33a32d4cb7d8116
* Switch x86 syscall stubs over to the ENTER/END style of the ARM stubs.Elliott Hughes2013-02-061-6/+3
| | | | | | | | | Also update the x86 asm.h to support this; we need it for libm assembler anyway. Also clean up the _FBSDID hack in <sys/cdefs.h>. Change-Id: Iababd977b8110ec022bf7c93f4d62ece47630e7c
* Add mlockall and munlockall for Google TV.Elliott Hughes2012-09-061-0/+23
Change-Id: I10e961d701e74aab07211ec7975f61167e387853