clarify the purpose of this project
[nyanglibc.git] / misc / pkey_alloc.shared.s
blob831d544c4f7ae6f9e57f7e7730b4e990791fdff1
1 .text
2 .globl pkey_alloc
3 .type pkey_alloc,@function
4 .align 1<<4
5 pkey_alloc:
7 movl $330, %eax
8 syscall
9 cmpq $-4095, %rax
10 jae 0f
11 ret
12 0: movq __libc_errno@GOTTPOFF(%rip), %rcx
13 neg %eax
14 movl %eax, %fs:(%rcx)
15 or $-1, %rax
16 ret
17 .size pkey_alloc,.-pkey_alloc
18 .globl __GI_pkey_alloc
19 .set __GI_pkey_alloc,pkey_alloc