Skip to content

Commit 2dcc239

Browse files
committed
Auto merge of #3416 - he32:netbsd-mipsel, r=JohnTitor
NetBSD/mipsel: add support. This follows rust-lang/rust#117356.
2 parents 375e641 + cf617c7 commit 2dcc239

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

libc-test/semver/netbsd-mips.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
PT_GETREGS
2+
PT_SETREGS
3+
PT_GETFPREGS
4+
PT_SETFPREGS
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
use PT_FIRSTMACH;
2+
3+
pub type c_long = i32;
4+
pub type c_ulong = u32;
5+
pub type c_char = i8;
6+
pub type __cpu_simple_lock_nv_t = ::c_int;
7+
8+
cfg_if! {
9+
if #[cfg(libc_const_size_of)] {
10+
#[doc(hidden)]
11+
pub const _ALIGNBYTES: usize = ::mem::size_of::<::c_longlong>() - 1;
12+
} else {
13+
#[doc(hidden)]
14+
pub const _ALIGNBYTES: usize = 8 - 1;
15+
}
16+
}
17+
18+
pub const PT_GETREGS: ::c_int = PT_FIRSTMACH + 1;
19+
pub const PT_SETREGS: ::c_int = PT_FIRSTMACH + 2;
20+
pub const PT_GETFPREGS: ::c_int = PT_FIRSTMACH + 3;
21+
pub const PT_SETFPREGS: ::c_int = PT_FIRSTMACH + 4;

src/unix/bsd/netbsdlike/netbsd/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -3203,6 +3203,9 @@ cfg_if! {
32033203
} else if #[cfg(target_arch = "x86")] {
32043204
mod x86;
32053205
pub use self::x86::*;
3206+
} else if #[cfg(target_arch = "mips")] {
3207+
mod mips;
3208+
pub use self::mips::*;
32063209
} else if #[cfg(target_arch = "riscv64")] {
32073210
mod riscv64;
32083211
pub use self::riscv64::*;

0 commit comments

Comments
 (0)