mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
LoongArch64 assembly pack: Really implement OPENSSL_rdtsc
LoongArch [rdtimel.w][1] instruction reads the low 32 bits of the 64-bit stable counter, implement OPENSSL_rdtsc with it instead of always returning 0. [1]:https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#_rdtimelh_w_rdtime_d Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22823)
This commit is contained in:
parent
a8df565115
commit
a607546e6e
@ -101,8 +101,8 @@ $code.=<<___;
|
||||
.globl OPENSSL_rdtsc
|
||||
.type OPENSSL_rdtsc,\@function
|
||||
OPENSSL_rdtsc:
|
||||
move $a0,$zero
|
||||
jr $ra
|
||||
rdtimel.w $a0,$zero
|
||||
jr $ra
|
||||
___
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user