Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
riscv: Initial support with v6.5 bindings
Browse files Browse the repository at this point in the history
Generated based on Linux tag v6.5.

Signed-off-by: Tan En De <[email protected]>
  • Loading branch information
endeneer committed Sep 29, 2023
1 parent 72a60d3 commit 5e6fee4
Show file tree
Hide file tree
Showing 5 changed files with 12,465 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
# Related issue: https://github.com/rust-lang/compiler-builtins/issues/201
[target.aarch64-unknown-linux-musl]
rustflags = [ "-C", "target-feature=+crt-static", "-C", "link-arg=-lgcc"]

[target.riscv64gc-unknown-linux-gnu]
linker = "riscv64-unknown-linux-gnu-gcc"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ following target architectures:
- x86_64
- arm
- arm64
- riscv

The bindings exported by this crate are statically generated using header files
associated with a specific kernel version, and are not automatically synced with
Expand Down
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@ pub use self::x86_64::*;
mod arm64;
#[cfg(any(target_arch = "aarch", target_arch = "aarch64"))]
pub use self::arm64::*;

#[cfg(any(target_arch = "riscv32", target_arch = "riscv64"))]
mod riscv;
#[cfg(any(target_arch = "riscv32", target_arch = "riscv64"))]
pub use self::riscv::*;
Loading

0 comments on commit 5e6fee4

Please sign in to comment.