Skip to content

Commit

Permalink
Add support for riscv64
Browse files Browse the repository at this point in the history
  • Loading branch information
felixonmars committed Sep 20, 2021
1 parent c0fe7cf commit 295ed33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ioctl-sys/src/platform/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ mod consts {
target_arch = "x86",
target_arch = "arm",
target_arch = "x86_64",
target_arch = "aarch64"
target_arch = "aarch64",
target_arch = "riscv64"
)))]
use this_arch_not_supported;

Expand All @@ -40,7 +41,8 @@ use this_arch_not_supported;
target_arch = "x86",
target_arch = "arm",
target_arch = "x86_64",
target_arch = "aarch64"
target_arch = "aarch64",
target_arch = "riscv64"
))]
mod consts {
#[doc(hidden)]
Expand Down
1 change: 1 addition & 0 deletions ioctls/etc/process_ioctls.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"x86_64": { "NONE": 0, "READ": 2, "WRITE": 1, "SIZEBITS": 14, "DIRBITS": 2},
"arm": { "NONE": 0, "READ": 2, "WRITE": 1, "SIZEBITS": 14, "DIRBITS": 2},
"aarch64": { "NONE": 0, "READ": 2, "WRITE": 1, "SIZEBITS": 14, "DIRBITS": 2},
"riscv64": { "NONE": 0, "READ": 2, "WRITE": 1, "SIZEBITS": 14, "DIRBITS": 2},
}

ioc_consts = {
Expand Down

0 comments on commit 295ed33

Please sign in to comment.