clarify the purpose of this project
[nyanglibc.git] / misc / readahead.shared.s
blob3b0a5dad78ebc729893f0821415ab720ba3c765e
1 .text
2 #APP
3 memmove = __GI_memmove
4 memset = __GI_memset
5 memcpy = __GI_memcpy
6 #NO_APP
7 .p2align 4,,15
8 .globl __readahead
9 .type __readahead, @function
10 __readahead:
11 movl $187, %eax
12 #APP
13 # 26 "../sysdeps/unix/sysv/linux/readahead.c" 1
14 syscall
16 # 0 "" 2
17 #NO_APP
18 cmpq $-4096, %rax
19 ja .L4
20 rep ret
21 .p2align 4,,10
22 .p2align 3
23 .L4:
24 movq __libc_errno@gottpoff(%rip), %rdx
25 negl %eax
26 movl %eax, %fs:(%rdx)
27 movq $-1, %rax
28 ret
29 .size __readahead, .-__readahead
30 .weak readahead
31 .set readahead,__readahead