From 17c9494a2df7f697c2656876699b3c5ef5e3d76e Mon Sep 17 00:00:00 2001 From: toddouska Date: Wed, 4 Nov 2015 13:26:38 -0800 Subject: [PATCH] fix gfmul intel calling convention --- wolfcrypt/src/aes_asm.asm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wolfcrypt/src/aes_asm.asm b/wolfcrypt/src/aes_asm.asm index b880762d8..921d89a73 100644 --- a/wolfcrypt/src/aes_asm.asm +++ b/wolfcrypt/src/aes_asm.asm @@ -983,6 +983,10 @@ gfmul PROC ; xmm1 holds operand b (128 bits) ; r8 holds the pointer to output (128 bits) + ; convert to what we had for att&t convention + movdqa xmm0, [rcx] + movdqa xmm1, [rdx] + ; on microsoft xmm6-xmm15 are non volaitle, let's save on stack and restore at end sub rsp,8+4*16 ; 8 = align stack , 4 xmm6-9 16 bytes each movdqa [rsp+0], xmm6