Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-wireless/aircrack-ng/files: sha-compile-fix-64bit.patch
Date: Sun, 01 Mar 2009 16:57:52
Message-Id: E1Ldoz8-00048T-IW@stork.gentoo.org
1 patrick 09/03/01 16:57:50
2
3 Added: sha-compile-fix-64bit.patch
4 Log:
5 Bump to 1.0_rc2, fixes #256545. Patch by toogle <commando2004@××××××.ru>.
6 (Portage version: 2.2_rc23/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 net-wireless/aircrack-ng/files/sha-compile-fix-64bit.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/aircrack-ng/files/sha-compile-fix-64bit.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/aircrack-ng/files/sha-compile-fix-64bit.patch?rev=1.1&content-type=text/plain
13
14 Index: sha-compile-fix-64bit.patch
15 ===================================================================
16 Index: src/sha1-sse2.S
17 ===================================================================
18 --- src/sha1-sse2.S (revision 1365)
19 +++ src/sha1-sse2.S (working copy)
20 @@ -413,11 +413,16 @@
21 ret
22 do_cpuid:
23 #endif
24 -
25 +
26 +#ifdef __x86_64__
27 + push %rbx
28 + push %rcx
29 + push %rdx
30 +#else
31 push %ebx
32 push %ecx
33 push %edx
34 -
35 +#endif
36 movl $1, %eax
37 cpuid
38
39 @@ -438,9 +443,15 @@
40 movl $0, %eax
41
42 cpuid_exit:
43 +#ifdef __x86_64__
44 + pop %rdx
45 + pop %rcx
46 + pop %rbx
47 +#else
48 pop %edx
49 pop %ecx
50 pop %ebx
51 +#endif
52 ret
53 #endif