From fc1411a702ec41e1b4302496092ee15739be9397 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Wed, 18 May 2022 09:05:02 +0800 Subject: [PATCH] fix assembly that clobbers BP --- sm2/p256_asm_amd64.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sm2/p256_asm_amd64.s b/sm2/p256_asm_amd64.s index e381cc4..7b41b92 100644 --- a/sm2/p256_asm_amd64.s +++ b/sm2/p256_asm_amd64.s @@ -1368,7 +1368,7 @@ TEXT sm2P256SubInternal(SB),NOSPLIT,$0 RET /* ---------------------------------------*/ -TEXT sm2P256MulInternal(SB),NOSPLIT,$0 +TEXT sm2P256MulInternal(SB),NOSPLIT,$8 MOVQ acc4, mul0 MULQ t0 MOVQ mul0, acc0 @@ -1567,7 +1567,7 @@ TEXT sm2P256MulInternal(SB),NOSPLIT,$0 RET /* ---------------------------------------*/ -TEXT sm2P256SqrInternal(SB),NOSPLIT,$0 +TEXT sm2P256SqrInternal(SB),NOSPLIT,$8 MOVQ acc4, mul0 MULQ acc5