blob: 5a184940a07f5b61536c1dfb0470d3c18d821df9 [file] [log] [blame]
Elliott Hughes103ccde2013-10-16 14:27:59 -07001/* Generated by gensyscalls.py. Do not edit. */
2
Elliott Hughesed744842013-11-07 10:31:05 -08003#include <private/bionic_asm.h>
Elliott Hughese4ffd9f2013-10-01 13:29:43 -07004
5ENTRY(__getcpu)
6 movl $__NR_getcpu, %eax
7 syscall
8 cmpq $-MAX_ERRNO, %rax
9 jb 1f
10 negl %eax
11 movl %eax, %edi
12 call __set_errno
13 orq $-1, %rax
141:
15 ret
16END(__getcpu)
Elliott Hughesfff6e272013-10-24 17:03:20 -070017.hidden _C_LABEL(__getcpu)