Skip to content

Commit c341d08

Browse files
committed
Auto merge of #3344 - loongarch-rs:hwcap, r=JohnTitor
Add the LoongArch64 HWCAP values Link: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/loongarch/include/uapi/asm/hwcap.h?h=v6.5
2 parents 6f31de3 + dcc5c92 commit c341d08

File tree

1 file changed

+15
-0
lines changed
  • src/unix/linux_like/linux/gnu/b64/loongarch64

1 file changed

+15
-0
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,21 @@ align_const! {
264264
};
265265
}
266266

267+
pub const HWCAP_CPUCFG: ::c_ulong = 1 << 0;
268+
pub const HWCAP_LAM: ::c_ulong = 1 << 1;
269+
pub const HWCAP_UAL: ::c_ulong = 1 << 2;
270+
pub const HWCAP_FPU: ::c_ulong = 1 << 3;
271+
pub const HWCAP_LSX: ::c_ulong = 1 << 4;
272+
pub const HWCAP_LASX: ::c_ulong = 1 << 5;
273+
pub const HWCAP_CRC32: ::c_ulong = 1 << 6;
274+
pub const HWCAP_COMPLEX: ::c_ulong = 1 << 7;
275+
pub const HWCAP_CRYPTO: ::c_ulong = 1 << 8;
276+
pub const HWCAP_LVZ: ::c_ulong = 1 << 9;
277+
pub const HWCAP_LBT_X86: ::c_ulong = 1 << 10;
278+
pub const HWCAP_LBT_ARM: ::c_ulong = 1 << 11;
279+
pub const HWCAP_LBT_MIPS: ::c_ulong = 1 << 12;
280+
pub const HWCAP_PTW: ::c_ulong = 1 << 13;
281+
267282
pub const SYS_io_setup: ::c_long = 0;
268283
pub const SYS_io_destroy: ::c_long = 1;
269284
pub const SYS_io_submit: ::c_long = 2;

0 commit comments

Comments
 (0)