Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a029b51

Browse files
committedNov 16, 2021
Add riscv32 support for musl C library based linux platforms
Signed-off-by: Khem Raj <[email protected]>
1 parent 69b86ab commit a029b51

File tree

4 files changed

+811
-0
lines changed

4 files changed

+811
-0
lines changed
 

‎src/unix/linux_like/linux/musl/b32/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ cfg_if! {
6060
} else if #[cfg(any(target_arch = "hexagon"))] {
6161
mod hexagon;
6262
pub use self::hexagon::*;
63+
} else if #[cfg(any(target_arch = "riscv32"))] {
64+
mod riscv32;
65+
pub use self::riscv32::*;
6366
} else {
6467
// Unknown target_arch
6568
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
s_no_extra_traits! {
2+
#[allow(missing_debug_implementations)]
3+
#[repr(align(8))]
4+
pub struct max_align_t {
5+
priv_: (i64, f64)
6+
}
7+
}

‎src/unix/linux_like/linux/musl/b32/riscv32/mod.rs

Lines changed: 800 additions & 0 deletions
Large diffs are not rendered by default.

‎src/unix/linux_like/linux/musl/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,7 @@ cfg_if! {
774774
target_arch = "mips",
775775
target_arch = "powerpc",
776776
target_arch = "hexagon",
777+
target_arch = "riscv32",
777778
target_arch = "arm"))] {
778779
mod b32;
779780
pub use self::b32::*;

0 commit comments

Comments
 (0)
Please sign in to comment.