aboutsummaryrefslogtreecommitdiff
path: root/system/x86_64/gettimeofday.S
blob: 8c2f83be9e67b92fdef31d4af6c833488432e67b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.text
.global gettimeofday
.type gettimeofday,@function
gettimeofday:
	mov	$0xffffffffff600000,%rax
	callq	*%rax
	cmpq	$-128, %rax
	jbe	1f
	negl	%eax
	pushq	%rax
	call	__errno_location
	popq	%rcx
	movl	%ecx,(%rax)
	orq	$-1, %rax
1:
	ret
.Lhere:
	.size	 gettimeofday,.Lhere-gettimeofday