Fix ARMv8 compile for AES
parent
8b116a78b8
commit
679000104c
|
|
@ -91,7 +91,7 @@ bool CPU_TryAES_ARMV8()
|
||||||
// http://github.com/weidai11/cryptopp/issues/24 and http://stackoverflow.com/q/7721854
|
// http://github.com/weidai11/cryptopp/issues/24 and http://stackoverflow.com/q/7721854
|
||||||
volatile bool result = true;
|
volatile bool result = true;
|
||||||
|
|
||||||
volatile SigHandler oldHandler = signal(SIGILL, SigIllHandlerAES);
|
volatile SigHandler oldHandler = signal(SIGILL, SigIllHandler);
|
||||||
if (oldHandler == SIG_ERR)
|
if (oldHandler == SIG_ERR)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
@ -99,7 +99,7 @@ bool CPU_TryAES_ARMV8()
|
||||||
if (sigprocmask(0, NULLPTR, (sigset_t*)&oldMask))
|
if (sigprocmask(0, NULLPTR, (sigset_t*)&oldMask))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (setjmp(s_jmpNoAES))
|
if (setjmp(s_jmpSIGILL))
|
||||||
result = false;
|
result = false;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue