diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2013-05-30 15:37:52 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2013-05-30 15:37:52 +0000 |
commit | 9c602f66c9062b998e1ed9b0afc422d5ec1f906e (patch) | |
tree | 9d81f0aef12a9bc2fbcb8cbbf5ee30a452fceb67 /lib/libcrypto/engine/hw_cryptodev.c | |
parent | 718e51f42fb72fff7c3fd2709356befbd94dcda8 (diff) |
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 'lib/libcrypto/engine/hw_cryptodev.c')
-rw-r--r-- | lib/libcrypto/engine/hw_cryptodev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/engine/hw_cryptodev.c b/lib/libcrypto/engine/hw_cryptodev.c index 0e80ca051a5..bc953872dd0 100644 --- a/lib/libcrypto/engine/hw_cryptodev.c +++ b/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 |