[git] GCRYPT - branch, master, updated. libgcrypt-1.6.0-215-gbac42c6
by Jussi Kivilinna
cvs at cvs.gnupg.org
Thu May 14 09:02:32 CEST 2015
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU crypto library".
The branch, master has been updated
via bac42c68b069f17abcca810a21439c7233815747 (commit)
via e15beb584a5ebdfc363e1ff15f87102508652d71 (commit)
from 5a7d55eed3316f40ca61acbee032bfc285e28803 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit bac42c68b069f17abcca810a21439c7233815747
Author: Jussi Kivilinna <jussi.kivilinna at iki.fi>
Date: Fri May 8 18:07:51 2015 +0300
hwf-x86: use edi for passing value to ebx for i386 cpuid
* src/hwf-x86.c [__i386__] (get_cpuid): Use '=D' for regs[1] instead
of '=r'.
--
On Win32, %ebx can be assigned for '=r' (regs[1]). This results invalid
assembly:
pushl %ebx
movl %ebx, %ebx
cpuid
movl %ebx, %ebx
popl %ebx
So use '=D' (%esi) for regs[1] instead.
Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
diff --git a/src/hwf-x86.c b/src/hwf-x86.c
index baef2df..399952c 100644
--- a/src/hwf-x86.c
+++ b/src/hwf-x86.c
@@ -81,7 +81,7 @@ get_cpuid(unsigned int in, unsigned int *eax, unsigned int *ebx,
"cpuid\n\t"
"movl %%ebx, %1\n\t"
"popl %%ebx\n\t" /* Restore GOT register. */
- : "=a" (regs[0]), "=r" (regs[1]), "=c" (regs[2]), "=d" (regs[3])
+ : "=a" (regs[0]), "=D" (regs[1]), "=c" (regs[2]), "=d" (regs[3])
: "0" (in), "1" (0), "2" (0), "3" (0)
: "cc"
);
commit e15beb584a5ebdfc363e1ff15f87102508652d71
Author: Jussi Kivilinna <jussi.kivilinna at iki.fi>
Date: Mon May 4 20:09:51 2015 +0300
hwf-x86: add EDX as output register for xgetbv asm block
* src/hwf-x86.c (get_xgetbv): Add EDX as output.
--
XGETBV instruction modifies EAX:EDX register pair, so we need to mark
EDX as output to let compiler know that contents in this register are
lost.
Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
diff --git a/src/hwf-x86.c b/src/hwf-x86.c
index 7ee246d..baef2df 100644
--- a/src/hwf-x86.c
+++ b/src/hwf-x86.c
@@ -100,11 +100,11 @@ get_cpuid(unsigned int in, unsigned int *eax, unsigned int *ebx,
static unsigned int
get_xgetbv(void)
{
- unsigned int t_eax;
+ unsigned int t_eax, t_edx;
asm volatile
("xgetbv\n\t"
- : "=a" (t_eax)
+ : "=a" (t_eax), "=d" (t_edx)
: "c" (0)
);
@@ -151,11 +151,11 @@ get_cpuid(unsigned int in, unsigned int *eax, unsigned int *ebx,
static unsigned int
get_xgetbv(void)
{
- unsigned int t_eax;
+ unsigned int t_eax, t_edx;
asm volatile
("xgetbv\n\t"
- : "=a" (t_eax)
+ : "=a" (t_eax), "=d" (t_edx)
: "c" (0)
);
-----------------------------------------------------------------------
Summary of changes:
src/hwf-x86.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
hooks/post-receive
--
The GNU crypto library
http://git.gnupg.org
_______________________________________________
Gnupg-commits mailing list
Gnupg-commits at gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-commits
More information about the Gcrypt-devel
mailing list