clarify the purpose of this project
[nyanglibc.git] / time / ntp_gettime.s
blob0f3800280b2fdb6d1f025a4d9ed4a074ea1358ff
1 .text
2 .p2align 4,,15
3 .globl __ntp_gettime
4 .type __ntp_gettime, @function
5 __ntp_gettime:
6 pushq %rbx
7 movq %rdi, %rbx
8 xorl %edi, %edi
9 subq $208, %rsp
10 movq %rsp, %rsi
11 movl $0, (%rsp)
12 call __clock_adjtime
13 movq 24(%rsp), %rdx
14 movdqu 72(%rsp), %xmm0
15 movq %rdx, 16(%rbx)
16 movq 32(%rsp), %rdx
17 movups %xmm0, (%rbx)
18 movq %rdx, 24(%rbx)
19 movslq 160(%rsp), %rdx
20 movq %rdx, 32(%rbx)
21 addq $208, %rsp
22 popq %rbx
23 ret
24 .size __ntp_gettime, .-__ntp_gettime
25 .globl ntp_gettime
26 .set ntp_gettime,__ntp_gettime
27 .hidden __clock_adjtime