diff options
author | Elliott Hughes <enh@google.com> | 2013-10-04 22:02:06 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2013-10-04 22:02:07 +0000 |
commit | 8fb977ba114e3fcb4965bc0211d3f9a409915994 (patch) | |
tree | bf0ddebce7e7444f44529cf3f293e3fb3d6dd936 /libc/arch-x86_64/syscalls/__arch_prctl.S | |
parent | c417d0a5cd0743d691fc63cc1007979b836945a0 (diff) | |
parent | 4906e5653c57d49f94940f28556009a88c42a583 (diff) | |
download | bionic-8fb977ba114e3fcb4965bc0211d3f9a409915994.zip bionic-8fb977ba114e3fcb4965bc0211d3f9a409915994.tar.gz bionic-8fb977ba114e3fcb4965bc0211d3f9a409915994.tar.bz2 |
Merge "Add arch-x86_64/bionic."
Diffstat (limited to 'libc/arch-x86_64/syscalls/__arch_prctl.S')
-rw-r--r-- | libc/arch-x86_64/syscalls/__arch_prctl.S | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libc/arch-x86_64/syscalls/__arch_prctl.S b/libc/arch-x86_64/syscalls/__arch_prctl.S new file mode 100644 index 0000000..21d154c --- /dev/null +++ b/libc/arch-x86_64/syscalls/__arch_prctl.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> +#include <linux/err.h> +#include <machine/asm.h> + +ENTRY(__arch_prctl) + movl $__NR_arch_prctl, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(__arch_prctl) |