chiark / gitweb /
base/asm-common.h, *.S: Include metadata for 64-bit Windows stack unwinding.
[catacomb] / symm / salsa20-x86ish-sse2.S
index d74836b323fb738ad2e7d3fad76c91cd8c92b695..6da6b24683fe9ab0b3ece85b034f23c67865c7fd 100644 (file)
@@ -42,7 +42,7 @@
 /// Main code.
 
        .arch pentium4
-       .section .text
+       .text
 
 FUNC(salsa20_core_x86ish_sse2)
 
@@ -111,8 +111,12 @@ FUNC(salsa20_core_x86ish_sse2)
 #  define SAVE3 [rsp + 48]
 
        sub     rsp, 64 + 8
+         .seh_stackalloc 64 + 8
        movdqa  [rsp +  0], xmm6
+         .seh_savexmm xmm6, 0
        movdqa  [rsp + 16], xmm7
+         .seh_savexmm xmm7, 16
+  .seh_endprologue
 #endif
 
        // First job is to slurp the matrix into XMM registers.  The words