Skip to content
Snippets Groups Projects
Commit 6801218f authored by Alistair Francis's avatar Alistair Francis
Browse files

linux: riscv32: Add support for the 64-bit time_t RV32 glibc port

parent 9c17cad7
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,8 @@ macro_rules! expand_align {
target_arch = "s390x",
target_arch = "sparc64",
target_arch = "aarch64",
target_arch = "riscv64"),
target_arch = "riscv64",
target_arch = "riscv32"),
repr(align(4)))]
#[cfg_attr(not(any(target_pointer_width = "32",
target_arch = "x86_64",
......@@ -17,7 +18,8 @@ macro_rules! expand_align {
target_arch = "s390x",
target_arch = "sparc64",
target_arch = "aarch64",
target_arch = "riscv64")),
target_arch = "riscv64",
target_arch = "riscv32")),
repr(align(8)))]
pub struct pthread_mutexattr_t {
#[doc(hidden)]
......
......@@ -278,6 +278,9 @@ cfg_if! {
} else if #[cfg(target_arch = "sparc")] {
mod sparc;
pub use self::sparc::*;
} else if #[cfg(any(target_arch = "riscv32"))] {
mod riscv32;
pub use self::riscv32::*;
} else {
// Unknown target_arch
}
......
This diff is collapsed.
......@@ -1213,7 +1213,8 @@ cfg_if! {
target_arch = "x86",
target_arch = "x86_64",
target_arch = "s390x",
target_arch = "riscv64"
target_arch = "riscv64",
target_arch = "riscv32"
))] {
pub const PTHREAD_STACK_MIN: ::size_t = 16384;
} else if #[cfg(any(
......@@ -1453,7 +1454,8 @@ cfg_if! {
target_arch = "arm",
target_arch = "mips",
target_arch = "powerpc",
target_arch = "sparc"))] {
target_arch = "sparc",
target_arch = "riscv32"))] {
mod b32;
pub use self::b32::*;
} else if #[cfg(any(target_arch = "x86_64",
......
......@@ -8,6 +8,7 @@ macro_rules! expand_align {
target_arch = "s390x",
target_arch = "sparc64",
target_arch = "riscv64",
target_arch = "riscv32",
all(target_arch = "aarch64",
target_env = "musl")))]
__align: [::c_int; 0],
......@@ -17,6 +18,7 @@ macro_rules! expand_align {
target_arch = "s390x",
target_arch = "sparc64",
target_arch = "riscv64",
target_arch = "riscv32",
all(target_arch = "aarch64",
target_env = "musl"))))]
__align: [::c_long; 0],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment