Print this page
4853 illumos-gate is not lint-clean when built with openssl 1.0

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/openssl/libsunw_crypto/pl/x86cpuid.pl
          +++ new/usr/src/lib/openssl/libsunw_crypto/pl/x86cpuid.pl
   1    1  #!/usr/bin/env perl
   2    2  
   3    3  $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
   4      -push(@INC, "${dir}perlasm", "perlasm");
        4 +push(@INC, "${dir}", "perlasm");
   5    5  require "x86asm.pl";
   6    6  
   7    7  &asm_init($ARGV[0],"x86cpuid");
   8    8  
   9    9  for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); }
  10   10  
  11   11  &function_begin("OPENSSL_ia32_cpuid");
  12   12          &xor    ("edx","edx");
  13   13          &pushf  ();
  14   14          &pop    ("eax");
↓ open down ↓ 331 lines elided ↑ open up ↑
 346  346  &set_label("loop");
 347  347          &rdrand ("eax");
 348  348          &jc     (&label("break"));
 349  349          &loop   (&label("loop"));
 350  350  &set_label("break");
 351  351          &cmp    ("eax",0);
 352  352          &cmove  ("eax","ecx");
 353  353          &ret    ();
 354  354  &function_end_B("OPENSSL_ia32_rdrand");
 355  355  
      356 +&initseg("illumos_locking_setup");
 356  357  &initseg("OPENSSL_cpuid_setup");
      358 +
      359 +&hidden("illumos_locking_setup");
      360 +&hidden("OPENSSL_cpuid_setup");
      361 +&hidden("OPENSSL_ia32cap_P");
 357  362  
 358  363  &asm_finish();
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX