X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/1a517bb3785891ff6940c73af7c5a136d0250ebf..0923a413958b0e778a3f059c76355ab58e5be414:/symm/chacha-x86ish-sse2.S diff --git a/symm/chacha-x86ish-sse2.S b/symm/chacha-x86ish-sse2.S index a7ff68b5..0989fd4b 100644 --- a/symm/chacha-x86ish-sse2.S +++ b/symm/chacha-x86ish-sse2.S @@ -60,8 +60,8 @@ FUNC(chacha_core_x86ish_sse2) # define SAVE2 xmm7 # define SAVE3 [esp] - push ebp - mov ebp, esp + pushreg ebp + setfp ebp sub esp, 16 mov IN, [ebp + 12] mov OUT, [ebp + 16] @@ -101,11 +101,11 @@ FUNC(chacha_core_x86ish_sse2) # define SAVE2 [rsp + 16] # define SAVE3 [rsp + 32] - sub rsp, 48 + 8 - .seh_stackalloc 48 + 8 - .seh_endprologue + stalloc 48 + 8 #endif + endprologue + // First job is to slurp the matrix into XMM registers. Be careful: // the input matrix isn't likely to be properly aligned. // @@ -239,11 +239,11 @@ FUNC(chacha_core_x86ish_sse2) // Tidy things up. #if CPUFAM_X86 - mov esp, ebp - pop ebp + dropfp + popreg ebp #endif #if CPUFAM_AMD64 && ABI_WIN - add rsp, 48 + 8 + stfree 48 + 8 #endif // And with that, we're done.