clarify the purpose of this project
[nyanglibc.git] / misc / madvise.shared.s
blob6912a9a4d2e7da419fc96b4e6d971b216df88ea8
1 .text
2 .globl __madvise
3 .type __madvise,@function
4 .align 1<<4
5 __madvise:
7 movl $28, %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 __madvise,.-__madvise
18 .globl __GI___madvise
19 .set __GI___madvise,__madvise
20 .weak madvise
21 madvise = __madvise
22 .globl __GI_madvise
23 .set __GI_madvise,madvise