File:  [DVB] / dietlibc / x86_64 / time.S
Revision 1.5: download - view: text, annotated - select for diffs
Mon Jan 25 19:04:49 2016 UTC (8 years, 4 months ago) by leitner
Branches: MAIN
CVS tags: HEAD
  plumbing to get preliminary PIE support for x86_64

#include "dietfeatures.h"
#include "syscalls.h"

.text
.global time
#ifdef __PIE__
.hidden time
#endif
.type time,@function
time:
	sub $24, %rsp
	mov %rdi, 16(%rsp)
	xor %rsi, %rsi
	mov %rsp, %rdi
#ifdef __PIC__
	call gettimeofday@PLT
#else
	call gettimeofday
#endif
	mov (%rsp), %rax
	mov 16(%rsp), %rcx
	test %rcx, %rcx
	jz 1f
	mov %rax, (%rcx)
1:
	add $24, %rsp
	ret
.Lhere2:
	.size	 time,.Lhere2-time
	.section	.note.GNU-stack,"",@progbits

LinuxTV legacy CVS <linuxtv.org/cvs>