summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormatthew <>2013-05-30 15:37:51 +0000
committermatthew <>2013-05-30 15:37:51 +0000
commit0cc12b3e4ca9e3cfc1840a70eda0cdc3987527ea (patch)
treef3f9500b3b79346b80feb9fd849a3ae0e7ce2844 /src
parent1b2da9fedb7c8a2fdfe95dcfdd318b25f9c1aa22 (diff)
downloadopenbsd-0cc12b3e4ca9e3cfc1840a70eda0cdc3987527ea.tar.gz
openbsd-0cc12b3e4ca9e3cfc1840a70eda0cdc3987527ea.tar.bz2
openbsd-0cc12b3e4ca9e3cfc1840a70eda0cdc3987527ea.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
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/engine/hw_cryptodev.c4
-rw-r--r--src/lib/libssl/src/crypto/engine/hw_cryptodev.c4
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