summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-12-08 18:15:44 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-12-08 18:15:44 +0100
commit5cc97db938c2c9a8862c27799ef8411f4892e025 (patch)
treea47dddded543243138d7a113272c56fbae5dfcda /devel
parentb81cee49452ad2ad546719a2093eb62cc8b0ffd4 (diff)
downloadgnutls-5cc97db938c2c9a8862c27799ef8411f4892e025.tar.gz
Exported gnutls_cpuid() and gnutls_have_cpuid().
Diffstat (limited to 'devel')
-rw-r--r--devel/perlasm/cpuid-x86.pl8
-rw-r--r--devel/perlasm/cpuid-x86_64.pl8
2 files changed, 8 insertions, 8 deletions
diff --git a/devel/perlasm/cpuid-x86.pl b/devel/perlasm/cpuid-x86.pl
index 50def40ba1..8eb12ef5f7 100644
--- a/devel/perlasm/cpuid-x86.pl
+++ b/devel/perlasm/cpuid-x86.pl
@@ -12,7 +12,7 @@ require "x86asm.pl";
&asm_init($ARGV[0],$0);
-&function_begin_B("_gnutls_cpuid");
+&function_begin_B("gnutls_cpuid");
&push ("ebp");
&mov ("ebp", "esp");
&sub ("esp", 12);
@@ -39,9 +39,9 @@ require "x86asm.pl";
&mov ("esp","ebp");
&pop ("ebp");
&ret ();
-&function_end_B("_gnutls_cpuid");
+&function_end_B("gnutls_cpuid");
-&function_begin_B("_gnutls_have_cpuid");
+&function_begin_B("gnutls_have_cpuid");
&pushf ();
&pop ("eax");
&or ("eax",0x200000);
@@ -51,7 +51,7 @@ require "x86asm.pl";
&pop ("eax");
&and ("eax",0x200000);
&ret ();
-&function_end_B("_gnutls_have_cpuid");
+&function_end_B("gnutls_have_cpuid");
&asciz("CPUID for x86");
&asm_finish();
diff --git a/devel/perlasm/cpuid-x86_64.pl b/devel/perlasm/cpuid-x86_64.pl
index b821a49f0d..ef1c95c2a7 100644
--- a/devel/perlasm/cpuid-x86_64.pl
+++ b/devel/perlasm/cpuid-x86_64.pl
@@ -26,10 +26,10 @@ $code=".text\n";
$code.=<<___;
-.globl _gnutls_cpuid
-.type _gnutls_cpuid,\@abi-omnipotent
+.globl gnutls_cpuid
+.type gnutls_cpuid,\@abi-omnipotent
.align 16
-_gnutls_cpuid:
+gnutls_cpuid:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
@@ -58,7 +58,7 @@ _gnutls_cpuid:
popq %rbx
leave
ret
-.size _gnutls_cpuid,.-_gnutls_cpuid
+.size gnutls_cpuid,.-gnutls_cpuid
___
$code =~ s/\`([^\`]*)\`/eval($1)/gem;