Skip to content

Commit 58b3973

Browse files
committed
Add missing AArch64 HWCAP_* and HWCAP2_* values.
1 parent 309f8c7 commit 58b3973

File tree

1 file changed

+43
-0
lines changed
  • src/unix/linux_like/linux/gnu/b64/aarch64

1 file changed

+43
-0
lines changed

src/unix/linux_like/linux/gnu/b64/aarch64/mod.rs

+43
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,49 @@ pub const TCSAFLUSH: ::c_int = 2;
662662
pub const TIOCLINUX: ::c_ulong = 0x541C;
663663
pub const TIOCGSERIAL: ::c_ulong = 0x541E;
664664

665+
// sys/auxv.h
666+
pub const HWCAP_FP: ::c_ulong = 1 << 0;
667+
pub const HWCAP_ASIMD: ::c_ulong = 1 << 1;
668+
pub const HWCAP_EVTSTRM: ::c_ulong = 1 << 2;
669+
pub const HWCAP_AES: ::c_ulong = 1 << 3;
670+
pub const HWCAP_PMULL: ::c_ulong = 1 << 4;
671+
pub const HWCAP_SHA1: ::c_ulong = 1 << 5;
672+
pub const HWCAP_SHA2: ::c_ulong = 1 << 6;
673+
pub const HWCAP_CRC32: ::c_ulong = 1 << 7;
674+
pub const HWCAP_ATOMICS: ::c_ulong = 1 << 8;
675+
pub const HWCAP_FPHP: ::c_ulong = 1 << 9;
676+
pub const HWCAP_ASIMDHP: ::c_ulong = 1 << 10;
677+
pub const HWCAP_CPUID: ::c_ulong = 1 << 11;
678+
pub const HWCAP_ASIMDRDM: ::c_ulong = 1 << 12;
679+
pub const HWCAP_JSCVT: ::c_ulong = 1 << 13;
680+
pub const HWCAP_FCMA: ::c_ulong = 1 << 14;
681+
pub const HWCAP_LRCPC: ::c_ulong = 1 << 15;
682+
pub const HWCAP_DCPOP: ::c_ulong = 1 << 16;
683+
pub const HWCAP_SHA3: ::c_ulong = 1 << 17;
684+
pub const HWCAP_SM3: ::c_ulong = 1 << 18;
685+
pub const HWCAP_SM4: ::c_ulong = 1 << 19;
686+
pub const HWCAP_ASIMDDP: ::c_ulong = 1 << 20;
687+
pub const HWCAP_SHA512: ::c_ulong = 1 << 21;
688+
pub const HWCAP_SVE: ::c_ulong = 1 << 22;
689+
pub const HWCAP_ASIMDFHM: ::c_ulong = 1 << 23;
690+
pub const HWCAP_DIT: ::c_ulong = 1 << 24;
691+
pub const HWCAP_USCAT: ::c_ulong = 1 << 25;
692+
pub const HWCAP_ILRCPC: ::c_ulong = 1 << 26;
693+
pub const HWCAP_FLAGM: ::c_ulong = 1 << 27;
694+
pub const HWCAP_SSBS: ::c_ulong = 1 << 28;
695+
pub const HWCAP_SB: ::c_ulong = 1 << 29;
696+
pub const HWCAP_PACA: ::c_ulong = 1 << 30;
697+
pub const HWCAP_PACG: ::c_ulong = 1 << 31;
698+
pub const HWCAP2_DCPODP: ::c_ulong = 1 << 0;
699+
pub const HWCAP2_SVE2: ::c_ulong = 1 << 1;
700+
pub const HWCAP2_SVEAES: ::c_ulong = 1 << 2;
701+
pub const HWCAP2_SVEPMULL: ::c_ulong = 1 << 3;
702+
pub const HWCAP2_SVEBITPERM: ::c_ulong = 1 << 4;
703+
pub const HWCAP2_SVESHA3: ::c_ulong = 1 << 5;
704+
pub const HWCAP2_SVESM4: ::c_ulong = 1 << 6;
705+
pub const HWCAP2_FLAGM2: ::c_ulong = 1 << 7;
706+
pub const HWCAP2_FRINT: ::c_ulong = 1 << 8;
707+
665708
// Syscall table
666709
pub const SYS_io_setup: ::c_long = 0;
667710
pub const SYS_io_destroy: ::c_long = 1;

0 commit comments

Comments
 (0)