diff options
author | Andy Polyakov <appro@openssl.org> | 2004-08-29 16:36:05 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2004-08-29 16:36:05 +0000 |
commit | 2b247cf81fbc320a313f952e2ea39cf63aa21010 (patch) | |
tree | d81b7181197eb2360ef8048ca9b488eff54b6e0f /crypto/x86cpuid.pl | |
parent | 746fc2526ffc17d57a5fb87568d01400cbcf62fd (diff) |
OPENSSL_ia32cap final touches. Note that OPENSSL_ia32cap is no longer a
symbol, but a macro expanded as (*(OPENSSL_ia32cap_loc())). The latter
is the only one to be exported to application.
Diffstat (limited to 'crypto/x86cpuid.pl')
-rw-r--r-- | crypto/x86cpuid.pl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/x86cpuid.pl b/crypto/x86cpuid.pl index 85fbef7417..da3e5bcaca 100644 --- a/crypto/x86cpuid.pl +++ b/crypto/x86cpuid.pl @@ -25,12 +25,12 @@ require "x86asm.pl"; &mov ("edx","ecx"); &function_end("OPENSSL_ia32_cpuid"); -&external_label("OPENSSL_ia32cap"); +&external_label("OPENSSL_ia32cap_P"); -&function_begin_B("OPENSSL_rdtsc"); +&function_begin_B("OPENSSL_rdtsc","EXTRN\t_OPENSSL_ia32cap_P:DWORD"); &xor ("eax","eax"); &xor ("edx","edx"); - &picmeup("ecx","OPENSSL_ia32cap"); + &picmeup("ecx","OPENSSL_ia32cap_P"); &bt (&DWP(0,"ecx"),4); &jnc (&label("notsc")); &rdtsc (); @@ -38,6 +38,6 @@ require "x86asm.pl"; &ret (); &function_end_B("OPENSSL_rdtsc"); -&initseg("OPENSSL_cpuid_setup") if ($main'elf); +&initseg("OPENSSL_cpuid_setup"); &asm_finish(); |