summaryrefslogtreecommitdiff
path: root/lib/accelerated/x86/macosx/cpuid-x86.s
blob: a8371ab56e81fca5f897d7238e2d7d53d7bb10aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#
# Copyright (C) 2011-2013 Free Software Foundation, Inc.
# Copyright (C) 2013 Nikos Mavrogiannopoulos
#
# Author: Nikos Mavrogiannopoulos
#
# This file is part of GnuTLS.
#
# The GnuTLS is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public License
# as published by the Free Software Foundation; either version 2.1 of
# the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.
#
# *** This file is auto-generated ***
#
.file	"devel/perlasm/cpuid-x86.s"
.text
.globl	_gnutls_cpuid
.align	4
_gnutls_cpuid:
L_gnutls_cpuid_begin:
	pushl	%ebp
	movl	%esp,%ebp
	subl	$12,%esp
	movl	%ebx,(%esp)
	movl	8(%ebp),%eax
	movl	%esi,4(%esp)
	movl	%edi,8(%esp)
	pushl	%ebx
	.byte	0x0f,0xa2
	movl	%ebx,%edi
	popl	%ebx
	movl	%edx,%esi
	movl	12(%ebp),%edx
	movl	%eax,(%edx)
	movl	16(%ebp),%eax
	movl	%edi,(%eax)
	movl	20(%ebp),%eax
	movl	%ecx,(%eax)
	movl	24(%ebp),%eax
	movl	%esi,(%eax)
	movl	(%esp),%ebx
	movl	4(%esp),%esi
	movl	8(%esp),%edi
	movl	%ebp,%esp
	popl	%ebp
	ret
.globl	_gnutls_have_cpuid
.align	4
_gnutls_have_cpuid:
L_gnutls_have_cpuid_begin:
	pushfl
	popl	%eax
	orl	$2097152,%eax
	pushl	%eax
	popfl
	pushfl
	popl	%eax
	andl	$2097152,%eax
	ret
.byte	67,80,85,73,68,32,102,111,114,32,120,56,54,0