[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-ports
Subject:    Re: aarch64 bulk build report
From:       Christian Weisgerber <naddy () mips ! inka ! de>
Date:       2023-09-28 18:33:23
Message-ID: ZRXG83fnjDN0Fdxx () lorvorc ! mips ! inka ! de
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic