Skip to content

Commit 835eafb

Browse files
committed
Detect MIPS32 R6
1 parent 312fcad commit 835eafb

File tree

18 files changed

+657
-24
lines changed

18 files changed

+657
-24
lines changed

src/backend/libc/c.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ pub(crate) const ETH_P_MCTP: c_int = linux_raw_sys::if_ether::ETH_P_MCTP as _;
6262
linux_kernel,
6363
any(
6464
target_arch = "mips",
65+
target_arch = "mips32r6"
6566
target_arch = "mips64",
6667
target_arch = "mips64r6",
6768
target_arch = "sparc",

src/backend/libc/mm/types.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ bitflags! {
201201
target_os = "redox",
202202
all(
203203
linux_kernel,
204-
any(target_arch = "mips", target_arch = "mips64", target_arch = "mips64r6"),
204+
any(target_arch = "mips", target_arch = "mips32r6", target_arch = "mips64", target_arch = "mips64r6"),
205205
)
206206
)))]
207207
const SYNC = bitcast!(c::MAP_SYNC);
@@ -335,7 +335,12 @@ pub enum Advice {
335335
/// `MADV_SOFT_OFFLINE`
336336
#[cfg(all(
337337
linux_kernel,
338-
not(any(target_arch = "mips", target_arch = "mips64", target_arch = "mips64r6"))
338+
not(any(
339+
target_arch = "mips",
340+
target_arch = "mips32r6",
341+
target_arch = "mips64",
342+
target_arch = "mips64r6"
343+
))
339344
))]
340345
LinuxSoftOffline = bitcast!(c::MADV_SOFT_OFFLINE),
341346
/// `MADV_MERGEABLE`

src/backend/libc/termios/syscalls.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ pub(crate) fn tcsetattr(
117117
let request = TCSETS2
118118
+ if cfg!(any(
119119
target_arch = "mips",
120+
target_arch = "mips32r6",
120121
target_arch = "mips64",
121122
target_arch = "mips64r6"
122123
)) {

0 commit comments

Comments
 (0)