Some broken software wants to deal with ld.so.cache.
[nyanglibc.git] / nptl / pthread_attr_setschedparam.shared.s
blob6fc4aec15f2a9482ed0d99c2ce0b4f2e27fd1dc6
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 __pthread_attr_setschedparam
9 .type __pthread_attr_setschedparam, @function
10 __pthread_attr_setschedparam:
11 pushq %r14
12 pushq %r13
13 movq %rsi, %r13
14 pushq %r12
15 pushq %rbp
16 pushq %rbx
17 movl 4(%rdi), %ebp
18 movq %rdi, %rbx
19 movl (%rsi), %r14d
20 movl %ebp, %edi
21 call __GI___sched_get_priority_min
22 movl %ebp, %edi
23 movl %eax, %r12d
24 call __GI___sched_get_priority_max
25 testl %r12d, %r12d
26 js .L4
27 testl %eax, %eax
28 js .L4
29 cmpl %r12d, %r14d
30 jl .L4
31 cmpl %eax, %r14d
32 jg .L4
33 movl 0(%r13), %eax
34 orl $32, 8(%rbx)
35 movl %eax, (%rbx)
36 xorl %eax, %eax
37 popq %rbx
38 popq %rbp
39 popq %r12
40 popq %r13
41 popq %r14
42 ret
43 .p2align 4,,10
44 .p2align 3
45 .L4:
46 popq %rbx
47 movl $22, %eax
48 popq %rbp
49 popq %r12
50 popq %r13
51 popq %r14
52 ret
53 .size __pthread_attr_setschedparam, .-__pthread_attr_setschedparam
54 .globl pthread_attr_setschedparam
55 .set pthread_attr_setschedparam,__pthread_attr_setschedparam