Omar Polo:
> on non-apple arm devices it assumes there is sys/auxv.h and
> asm/hwcap.h and uses getauxval(AT_HWCAP) to see if some features
> (CRC32, SHA1, SHA2 and AES) are supported by the CPU.
>
> What can we use to detect the availability of these instructions?
sysctl machdep.id_aa64isar0
See for instance security/libgcrypt/patches/patch-src_hwf-arm_c.
(Or grep the ports tree for patches that contain "AA64ISAR0".)
--
Christian "naddy" Weisgerber naddy@mips.inka.de
No comments:
Post a Comment