From d09ea904ae8fc2ec4057e71047ca2469c9557d1d Mon Sep 17 00:00:00 2001 From: matthew <> Date: Thu, 30 May 2013 15:37:51 +0000 Subject: 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 --- src/lib/libcrypto/engine/hw_cryptodev.c | 4 ++-- 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, * Cannot simply place key into "b" register, since the compiler * -pic mode uses that register; so instead we must dance a little. */ - __asm __volatile("pushl %%ebx; movl %0, %%ebx; rep xcrypt-cbc; popl %%ebx" : + __asm __volatile("pushl %%ebx; movl %0, %%ebx; rep xcryptcbc; popl %%ebx" : : "m" (key), "a" (iv), "c" (rep), "d" (cw), "S" (src), "D" (dst) : "memory", "cc"); #else @@ -634,7 +634,7 @@ viac3_xcrypt_cbc(int *cw, const void *src, void *dst, void *key, int rep, * Clear bit 30 of EFLAGS. */ __asm __volatile("pushfq; popfq"); - __asm __volatile("rep xcrypt-cbc" : + __asm __volatile("rep xcryptcbc" : : "b" (key), "a" (iv), "c" (rep), "d" (cw), "S" (src), "D" (dst) : "memory", "cc"); #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, * Cannot simply place key into "b" register, since the compiler * -pic mode uses that register; so instead we must dance a little. */ - __asm __volatile("pushl %%ebx; movl %0, %%ebx; rep xcrypt-cbc; popl %%ebx" : + __asm __volatile("pushl %%ebx; movl %0, %%ebx; rep xcryptcbc; popl %%ebx" : : "m" (key), "a" (iv), "c" (rep), "d" (cw), "S" (src), "D" (dst) : "memory", "cc"); #else @@ -634,7 +634,7 @@ viac3_xcrypt_cbc(int *cw, const void *src, void *dst, void *key, int rep, * Clear bit 30 of EFLAGS. */ __asm __volatile("pushfq; popfq"); - __asm __volatile("rep xcrypt-cbc" : + __asm __volatile("rep xcryptcbc" : : "b" (key), "a" (iv), "c" (rep), "d" (cw), "S" (src), "D" (dst) : "memory", "cc"); #endif -- cgit v1.2.3-55-g6feb