File tree 3 files changed +16
-1
lines changed
src/unix/linux_like/linux/gnu/b64/riscv64
3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -3407,7 +3407,7 @@ fn test_linux(target: &str) {
3407
3407
// Include linux headers at the end:
3408
3408
headers ! {
3409
3409
cfg:
3410
- [ loongarch64] : "asm/hwcap.h" ,
3410
+ [ loongarch64 || riscv64 ] : "asm/hwcap.h" ,
3411
3411
"asm/mman.h" ,
3412
3412
[ gnu] : "linux/aio_abi.h" ,
3413
3413
"linux/can.h" ,
Original file line number Diff line number Diff line change @@ -71,3 +71,10 @@ TIOCSRS485
71
71
flock64
72
72
fsblkcnt64_t
73
73
fsfilcnt64_t
74
+ COMPAT_HWCAP_ISA_I
75
+ COMPAT_HWCAP_ISA_M
76
+ COMPAT_HWCAP_ISA_A
77
+ COMPAT_HWCAP_ISA_F
78
+ COMPAT_HWCAP_ISA_D
79
+ COMPAT_HWCAP_ISA_C
80
+ COMPAT_HWCAP_ISA_V
Original file line number Diff line number Diff line change @@ -540,6 +540,14 @@ pub const REG_A0: usize = 10;
540
540
pub const REG_S2 : usize = 18 ;
541
541
pub const REG_NARGS : usize = 8 ;
542
542
543
+ pub const COMPAT_HWCAP_ISA_I : :: c_ulong = 1 << ( b'I' - b'A' ) ;
544
+ pub const COMPAT_HWCAP_ISA_M : :: c_ulong = 1 << ( b'M' - b'A' ) ;
545
+ pub const COMPAT_HWCAP_ISA_A : :: c_ulong = 1 << ( b'A' - b'A' ) ;
546
+ pub const COMPAT_HWCAP_ISA_F : :: c_ulong = 1 << ( b'F' - b'A' ) ;
547
+ pub const COMPAT_HWCAP_ISA_D : :: c_ulong = 1 << ( b'D' - b'A' ) ;
548
+ pub const COMPAT_HWCAP_ISA_C : :: c_ulong = 1 << ( b'C' - b'A' ) ;
549
+ pub const COMPAT_HWCAP_ISA_V : :: c_ulong = 1 << ( b'V' - b'A' ) ;
550
+
543
551
pub const SYS_read : :: c_long = 63 ;
544
552
pub const SYS_write : :: c_long = 64 ;
545
553
pub const SYS_close : :: c_long = 57 ;
You can’t perform that action at this time.
0 commit comments