OPENSSL_cleanse to accept zero length parameter [matching C implementation].
[openssl.git] / crypto / alphacpuid.s
index 53f6a1a1e528d9e69a68d2ecdcf81afb47a8652e..3fa77a0ade5b1415080cbe95e8468d51e88a4471 100644 (file)
@@ -2,6 +2,14 @@
 
 .set   noat
 
+.globl OPENSSL_cpuid_setup
+.ent   OPENSSL_cpuid_setup
+OPENSSL_cpuid_setup:
+       .frame  $30,0,$26
+       .prologue 0
+       ret     ($26)
+.end   OPENSSL_cpuid_setup
+
 .globl OPENSSL_wipe_cpu
 .ent   OPENSSL_wipe_cpu
 OPENSSL_wipe_cpu:
@@ -82,6 +90,7 @@ OPENSSL_rdtsc:
 OPENSSL_cleanse:
        .frame  $30,0,$26
        .prologue 0
+       beq     $17,.Ldone
        and     $16,7,$0
        bic     $17,7,$at
        beq     $at,.Little