Skip to content

Commit

Permalink
Add riscv32 support for musl C library based linux platforms
Browse files Browse the repository at this point in the history
Signed-off-by: Khem Raj <raj.khem@gmail.com>
  • Loading branch information
kraj committed Apr 28, 2022
1 parent 69b86ab commit 391a9b2
Show file tree
Hide file tree
Showing 4 changed files with 818 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/unix/linux_like/linux/musl/b32/mod.rs
Expand Up @@ -60,6 +60,9 @@ cfg_if! {
} else if #[cfg(any(target_arch = "hexagon"))] {
mod hexagon;
pub use self::hexagon::*;
} else if #[cfg(any(target_arch = "riscv32"))] {
mod riscv32;
pub use self::riscv32::*;
} else {
// Unknown target_arch
}
Expand Down
7 changes: 7 additions & 0 deletions src/unix/linux_like/linux/musl/b32/riscv32/align.rs
@@ -0,0 +1,7 @@
s_no_extra_traits! {
#[allow(missing_debug_implementations)]
#[repr(align(8))]
pub struct max_align_t {
priv_: (i64, f64)
}
}

0 comments on commit 391a9b2

Please sign in to comment.