Skip to content

Commit d401c6f

Browse files
Merge #1176
1176: Add RISC-V support on GNU/Linux r=asomers a=msizanoen1 Co-authored-by: msizanoen1 <[email protected]>
2 parents b23e8e5 + 10e69db commit d401c6f

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/sys/ioctl/linux.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ mod consts {
3333
target_arch = "arm",
3434
target_arch = "s390x",
3535
target_arch = "x86_64",
36-
target_arch = "aarch64"))]
36+
target_arch = "aarch64",
37+
target_arch = "riscv64"))]
3738
mod consts {
3839
#[doc(hidden)]
3940
pub const NONE: u8 = 0;

src/sys/ptrace/linux.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -46,27 +46,31 @@ libc_enum!{
4646
target_arch = "mips",
4747
target_arch = "mips64",
4848
target_arch = "x86_64",
49+
target_arch = "riscv64",
4950
target_pointer_width = "32"))))]
5051
PTRACE_GETREGS,
5152
#[cfg(any(all(target_os = "android", target_pointer_width = "32"),
5253
all(target_os = "linux", any(target_env = "musl",
5354
target_arch = "mips",
5455
target_arch = "mips64",
5556
target_arch = "x86_64",
57+
target_arch = "riscv64",
5658
target_pointer_width = "32"))))]
5759
PTRACE_SETREGS,
5860
#[cfg(any(all(target_os = "android", target_pointer_width = "32"),
5961
all(target_os = "linux", any(target_env = "musl",
6062
target_arch = "mips",
6163
target_arch = "mips64",
6264
target_arch = "x86_64",
65+
target_arch = "riscv64",
6366
target_pointer_width = "32"))))]
6467
PTRACE_GETFPREGS,
6568
#[cfg(any(all(target_os = "android", target_pointer_width = "32"),
6669
all(target_os = "linux", any(target_env = "musl",
6770
target_arch = "mips",
6871
target_arch = "mips64",
6972
target_arch = "x86_64",
73+
target_arch = "riscv64",
7074
target_pointer_width = "32"))))]
7175
PTRACE_SETFPREGS,
7276
PTRACE_ATTACH,
@@ -75,13 +79,15 @@ libc_enum!{
7579
target_arch = "mips",
7680
target_arch = "mips64",
7781
target_arch = "x86",
78-
target_arch = "x86_64")))]
82+
target_arch = "x86_64",
83+
target_arch = "riscv64")))]
7984
PTRACE_GETFPXREGS,
8085
#[cfg(all(target_os = "linux", any(target_env = "musl",
8186
target_arch = "mips",
8287
target_arch = "mips64",
8388
target_arch = "x86",
84-
target_arch = "x86_64")))]
89+
target_arch = "x86_64",
90+
target_arch = "riscv64")))]
8591
PTRACE_SETFPXREGS,
8692
PTRACE_SYSCALL,
8793
PTRACE_SETOPTIONS,

0 commit comments

Comments
 (0)