;;
;; clobbers xmm0-15
-%include "os.asm"
+%include "include/os.asm"
%include "mb_mgr_datastruct.asm"
;%define DO_DBGPRINT
-%include "dbgprint.asm"
+%include "include/dbgprint.asm"
section .data
default rel
;;;;;;;;;;;;;;;;
;; Postamble
+%ifdef SAFE_DATA
+ ;; Clear stack frame ((16 + 8)*16 bytes)
+ pxor xmm0, xmm0
+%assign i 0
+%rep (16+NUM_SHA256_DIGEST_WORDS)
+ movdqa [rsp + i*SZ4], xmm0
+%assign i (i+1)
+%endrep
+%endif
+
add rsp, STACK_size
; outer calling routine restores XMM and other GP registers
ret