X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Falphacpuid.pl;h=4b3cbb9827d25c40b432b34e08f8f6a7d3c64627;hb=e2f06800bce44a87596534b9f23710becf51771a;hp=1908216532c4d56f555ff5728fe3137e7f6757ee;hpb=6e1d44fd56142b27fc75ee92fae1ba82341909f9;p=oweals%2Fopenssl.git diff --git a/crypto/alphacpuid.pl b/crypto/alphacpuid.pl index 1908216532..4b3cbb9827 100644 --- a/crypto/alphacpuid.pl +++ b/crypto/alphacpuid.pl @@ -1,5 +1,5 @@ #!/usr/bin/env perl -print <<___; +print <<'___'; .text .set noat @@ -70,9 +70,9 @@ OPENSSL_wipe_cpu: OPENSSL_atomic_add: .frame $30,0,$26 .prologue 0 -1: ldl_l $0,($16) +1: ldl_l $0,0($16) addl $0,$17,$1 - stl_c $1,($16) + stl_c $1,0($16) beq $1,1b addl $0,$17,$0 ret ($26) @@ -99,19 +99,19 @@ OPENSSL_cleanse: beq $0,.Laligned .Little: + subq $0,8,$0 ldq_u $1,0($16) mov $16,$2 .Lalign: mskbl $1,$16,$1 lda $16,1($16) subq $17,1,$17 - subq $0,1,$0 + addq $0,1,$0 beq $17,.Lout bne $0,.Lalign .Lout: stq_u $1,0($2) beq $17,.Ldone bic $17,7,$at - mov $17,$0 beq $at,.Little .Laligned: @@ -120,9 +120,7 @@ OPENSSL_cleanse: lda $16,8($16) bic $17,7,$at bne $at,.Laligned - beq $17,.Ldone - mov $17,$0 - br .Little + bne $17,.Little .Ldone: ret ($26) .end OPENSSL_cleanse ___