diff options
author | matthew <> | 2013-05-30 15:37:51 +0000 |
---|---|---|
committer | matthew <> | 2013-05-30 15:37:51 +0000 |
commit | d09ea904ae8fc2ec4057e71047ca2469c9557d1d (patch) | |
tree | f3f9500b3b79346b80feb9fd849a3ae0e7ce2844 | |
parent | 65bed23ae4c989b93a472c5cf2bffdc7ebef08a3 (diff) | |
download | openbsd-d09ea904ae8fc2ec4057e71047ca2469c9557d1d.tar.gz openbsd-d09ea904ae8fc2ec4057e71047ca2469c9557d1d.tar.bz2 openbsd-d09ea904ae8fc2ec4057e71047ca2469c9557d1d.zip |
Switch to using unhyphenated VIA padlock mnemonics. VIA abandoned the
hyphen in their official programming guide sometime between 2003 and
2005, and Clang's integrated assembler does not support hyphenated
mnemonics.
ok jsg, deraadt
-rw-r--r-- | src/lib/libcrypto/engine/hw_cryptodev.c | 4 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/engine/hw_cryptodev.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/engine/hw_cryptodev.c b/src/lib/libcrypto/engine/hw_cryptodev.c index 0e80ca051a..bc953872dd 100644 --- a/src/lib/libcrypto/engine/hw_cryptodev.c +++ b/src/lib/libcrypto/engine/hw_cryptodev.c | |||
@@ -625,7 +625,7 @@ viac3_xcrypt_cbc(int *cw, const void *src, void *dst, void *key, int rep, | |||
625 | * Cannot simply place key into "b" register, since the compiler | 625 | * Cannot simply place key into "b" register, since the compiler |
626 | * -pic mode uses that register; so instead we must dance a little. | 626 | * -pic mode uses that register; so instead we must dance a little. |
627 | */ | 627 | */ |
628 | __asm __volatile("pushl %%ebx; movl %0, %%ebx; rep xcrypt-cbc; popl %%ebx" : | 628 | __asm __volatile("pushl %%ebx; movl %0, %%ebx; rep xcryptcbc; popl %%ebx" : |
629 | : "m" (key), "a" (iv), "c" (rep), "d" (cw), "S" (src), "D" (dst) | 629 | : "m" (key), "a" (iv), "c" (rep), "d" (cw), "S" (src), "D" (dst) |
630 | : "memory", "cc"); | 630 | : "memory", "cc"); |
631 | #else | 631 | #else |
@@ -634,7 +634,7 @@ viac3_xcrypt_cbc(int *cw, const void *src, void *dst, void *key, int rep, | |||
634 | * Clear bit 30 of EFLAGS. | 634 | * Clear bit 30 of EFLAGS. |
635 | */ | 635 | */ |
636 | __asm __volatile("pushfq; popfq"); | 636 | __asm __volatile("pushfq; popfq"); |
637 | __asm __volatile("rep xcrypt-cbc" : | 637 | __asm __volatile("rep xcryptcbc" : |
638 | : "b" (key), "a" (iv), "c" (rep), "d" (cw), "S" (src), "D" (dst) | 638 | : "b" (key), "a" (iv), "c" (rep), "d" (cw), "S" (src), "D" (dst) |
639 | : "memory", "cc"); | 639 | : "memory", "cc"); |
640 | #endif | 640 | #endif |
diff --git a/src/lib/libssl/src/crypto/engine/hw_cryptodev.c b/src/lib/libssl/src/crypto/engine/hw_cryptodev.c index 0e80ca051a..bc953872dd 100644 --- a/src/lib/libssl/src/crypto/engine/hw_cryptodev.c +++ b/src/lib/libssl/src/crypto/engine/hw_cryptodev.c | |||
@@ -625,7 +625,7 @@ viac3_xcrypt_cbc(int *cw, const void *src, void *dst, void *key, int rep, | |||
625 | * Cannot simply place key into "b" register, since the compiler | 625 | * Cannot simply place key into "b" register, since the compiler |
626 | * -pic mode uses that register; so instead we must dance a little. | 626 | * -pic mode uses that register; so instead we must dance a little. |
627 | */ | 627 | */ |
628 | __asm __volatile("pushl %%ebx; movl %0, %%ebx; rep xcrypt-cbc; popl %%ebx" : | 628 | __asm __volatile("pushl %%ebx; movl %0, %%ebx; rep xcryptcbc; popl %%ebx" : |
629 | : "m" (key), "a" (iv), "c" (rep), "d" (cw), "S" (src), "D" (dst) | 629 | : "m" (key), "a" (iv), "c" (rep), "d" (cw), "S" (src), "D" (dst) |
630 | : "memory", "cc"); | 630 | : "memory", "cc"); |
631 | #else | 631 | #else |
@@ -634,7 +634,7 @@ viac3_xcrypt_cbc(int *cw, const void *src, void *dst, void *key, int rep, | |||
634 | * Clear bit 30 of EFLAGS. | 634 | * Clear bit 30 of EFLAGS. |
635 | */ | 635 | */ |
636 | __asm __volatile("pushfq; popfq"); | 636 | __asm __volatile("pushfq; popfq"); |
637 | __asm __volatile("rep xcrypt-cbc" : | 637 | __asm __volatile("rep xcryptcbc" : |
638 | : "b" (key), "a" (iv), "c" (rep), "d" (cw), "S" (src), "D" (dst) | 638 | : "b" (key), "a" (iv), "c" (rep), "d" (cw), "S" (src), "D" (dst) |
639 | : "memory", "cc"); | 639 | : "memory", "cc"); |
640 | #endif | 640 | #endif |