Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 24 Oct 2015 02:43:25 +0200
From: magnum <john.magnum@...hmail.com>
To: john-dev@...ts.openwall.com
Subject: Re: Re: "Illegal instruction" error on

On 2015-10-24 02:33, magnum wrote:
> On 2015-10-24 01:07, magnum wrote:
>> I'll see if I can figure out how to check for AVX2 and beat Solar to
>> it... it oughta be better than Sudoku.
>
> I think/hope I did it right. Seems to work. Here's the asm diff.

Had to clear ecx also

  #ifdef CPU_REQ_AVX2
         xorl %eax,%eax
         cpuid
         movl $7,%edx
         cmpl %edx,%eax
         jl CPU_detect_fail
         xchgl %edx,%eax
+       xorl %ecx,%ecx
         cpuid
         andl CF_AVX2,%ebx
         cmpl CF_AVX2,%ebx
         jne CPU_detect_fail
  #else


magnum

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ